From 57665e3dd8149416e41f1006c511824fe4ec871a Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Tue, 28 Mar 2017 01:12:47 +0200 Subject: [PATCH] Debug config --- publichealth/settings/base.py | 6 ++++-- publichealth/settings/production.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/publichealth/settings/base.py b/publichealth/settings/base.py index e334513..505b4ba 100644 --- a/publichealth/settings/base.py +++ b/publichealth/settings/base.py @@ -14,7 +14,6 @@ https://docs.djangoproject.com/en/1.8/ref/settings/ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os -import dj_database_url PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(PROJECT_DIR) @@ -96,7 +95,10 @@ WSGI_APPLICATION = 'publichealth.wsgi.application' # https://docs.djangoproject.com/en/1.8/ref/settings/#databases DATABASES = { - 'default': dj_database_url.config() + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'publichealth', + } } diff --git a/publichealth/settings/production.py b/publichealth/settings/production.py index 83f2414..e0d4f38 100644 --- a/publichealth/settings/production.py +++ b/publichealth/settings/production.py @@ -7,8 +7,8 @@ from .base import * # Instead, use environment variables or create a local.py file on the server. # Disable debug mode -DEBUG = False -TEMPLATES[0]['OPTIONS']['debug'] = False +DEBUG = True +TEMPLATES[0]['OPTIONS']['debug'] = True # Compress static files offline and minify CSS # http://django-compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_OFFLINE