Skip to content

Instantly share code, notes, and snippets.

View Mdslino's full-sized avatar

Marcelo Lino Mdslino

View GitHub Profile
@Mdslino
Mdslino / python_date_util_example_parse.py
Last active March 17, 2019 13:41
Parse date string with python-dateutil
from dateutil.parser import parse
date1 = parse('2006-01-02T15:04:05)
date2 = parse('2006-01-02 15:04:05)
date3 = parse('02/01/2006 15:04:05)
# Variables
GIT_CURRENT_BRANCH := ${shell git symbolic-ref --short HEAD}
BASE_DIR := ./
PKG_NAME := src
SRC_DIR := $(BASE_DIR)/$(PKG_NAME)/
PYTHONPATH := ${shell pwd}
init:
@PYTHONPATH=$(PYTHONPATH) python manage.py db init
migrate: