From b32718c955f4280e9878411c92ff2fca1bd7e8e6 Mon Sep 17 00:00:00 2001 From: Vitaly Babiy Date: Thu, 19 Sep 2013 20:41:12 -0400 Subject: [PATCH] Fixing the default check on databases setting. --- .../{{cookiecutter.repo_name}}/config/settings.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py index ccb3028e..75ef95f1 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py @@ -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