Debug config

This commit is contained in:
Oleg Lavrovsky 2017-03-28 01:12:47 +02:00
parent f48aaabf09
commit 57665e3dd8
2 changed files with 6 additions and 4 deletions

View file

@ -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',
}
}

View file

@ -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