From 9b3b54eb75b44b45f0b681f38d6914553bdbfab4 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 22 Dec 2016 03:37:07 -0400 Subject: [PATCH] Make DEBUG False by default. --- mayan/settings/base.py | 4 ++-- mayan/settings/production.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mayan/settings/base.py b/mayan/settings/base.py index 2754bb9d00..d51aa6db70 100644 --- a/mayan/settings/base.py +++ b/mayan/settings/base.py @@ -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 diff --git a/mayan/settings/production.py b/mayan/settings/production.py index f14639d1b9..fa8a4c4ae6 100644 --- a/mayan/settings/production.py +++ b/mayan/settings/production.py @@ -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',