Fixing the default check on databases setting.

This commit is contained in:
Vitaly Babiy 2013-09-19 20:41:12 -04:00
parent a1dff3e976
commit b32718c955

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