mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Added the latest version of pytz (2014.7) to requirements/base.txt to
avoid errors with DateTime fields.
This commit is contained in:
parent
63f64b648b
commit
3900088772
|
@ -1,18 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
from django.conf import settings
|
||||
from django.core.checks import register, Error
|
||||
|
||||
from .local import Local # noqa
|
||||
from .production import Production # noqa
|
||||
|
||||
|
||||
@register(settings)
|
||||
def dj_database_url_check(app_configs=None, **kwargs):
|
||||
errors = []
|
||||
password = settings.DATABASES['default'].get('PASSWORD')
|
||||
config = os.environ['DJANGO_CONFIGURATION'].lower()
|
||||
if password == 'blank' and config == 'production':
|
||||
errors.append(Error('Change the database password for production.'))
|
||||
return errors
|
||||
|
|
|
@ -112,7 +112,7 @@ class Common(Configuration):
|
|||
|
||||
# DATABASE CONFIGURATION
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
||||
DATABASES = values.DatabaseURLValue('postgres://localhost/django:blank@{{cookiecutter.repo_name}}')
|
||||
DATABASES = values.DatabaseURLValue('postgres://localhost/{{cookiecutter.repo_name}}')
|
||||
# END DATABASE CONFIGURATION
|
||||
|
||||
# CACHING
|
||||
|
|
Loading…
Reference in New Issue
Block a user