Make DEBUG False by default.

This commit is contained in:
Roberto Rosario
2016-12-22 03:37:07 -04:00
parent 2d7dc91928
commit 9b3b54eb75
2 changed files with 3 additions and 5 deletions

View File

@@ -30,9 +30,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'secret_key_missing'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition

View File

@@ -2,13 +2,11 @@ from __future__ import absolute_import, unicode_literals
from . import * # NOQA
DEBUG = False
# Update this accordingly;
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['*']
TEMPLATES['OPTIONS']['loaders'] = (
TEMPLATES[0]['OPTIONS']['loaders'] = (
'django.template.loaders.cached.Loader', (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',