Merge pull request #18 from vbabiy/database-defaults

Fixing the default check on databases setting.
This commit is contained in:
Daniel Greenfeld 2013-09-20 03:07:45 -07:00
commit 31412a20c9

View File

@ -113,15 +113,7 @@ class Common(Configuration):
########## DATABASE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = values.DatabaseURLValue()
if DATABASES == {'default': {}}:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': "{{cookiecutter.repo_name}}",
}
}
DATABASES = values.DatabaseURLValue('postgres://localhost/{{cookiecutter.repo_name}}')
########## END DATABASE CONFIGURATION
########## CACHING