feat(templating): make TIMEZONE default to UTC and configurable

Thanks @burhan for reportings this.

closes #109
This commit is contained in:
Saurabh Kumar 2015-02-24 19:06:31 +05:30
parent 1e279ba60e
commit a9a729e500
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@
"description": "A short description of the project.",
"domain_name": "example.com",
"version": "0.1.0",
"timezone": "UTC",
"now": "2015/01/13",
"year": "{{ cookiecutter.now[:4] }}"
}

View File

@ -126,8 +126,12 @@ class Common(Configuration):
# END CACHING
# GENERAL CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#time-zone
TIME_ZONE = 'America/Los_Angeles'
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = '{{ cookiecutter.timezone }}'
# See: https://docs.djangoproject.com/en/dev/ref/settings/#language-code
LANGUAGE_CODE = 'en-us'