2015-08-22 21:41:55 +02:00
|
|
|
from cookiecutter.main import cookiecutter
|
|
|
|
from datetime import datetime
|
2015-09-15 11:47:21 +02:00
|
|
|
from tzlocal import get_localzone
|
|
|
|
import pytz
|
2015-08-22 21:41:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
cookiecutter(
|
|
|
|
'cookiecutter-new-post',
|
2015-10-05 15:46:31 +02:00
|
|
|
overwrite_if_exists=True,
|
2015-09-15 11:47:21 +02:00
|
|
|
extra_context={
|
|
|
|
'date': datetime.utcnow().replace(tzinfo=pytz.utc).astimezone(get_localzone()).strftime('%Y-%m-%d %H:%M')})
|