From 5dca7cd3506c101be6a429ee6f0340107679714f Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 17 Aug 2018 11:57:31 +0900 Subject: [PATCH] Update DEBUG variable --- app/app/settings.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/app/settings.py b/app/app/settings.py index 6c522749..8f9fb7a2 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -26,10 +26,11 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'v8sk33sy82!uw3ty=!jjv5vp7=s2phrzw(m(hrn^f7e_#1h2al' # SECURITY WARNING: don't run with debug turned on in production! -#DEBUG = True -DEBUG = bool(os.environ.get('DEBUG', False)) -print(DEBUG) -print(os.environ.get("DEBUG")) +DEBUG = True +if os.environ.get('DEBUG') == 'False': + DEBUG = False +# DEBUG = bool(os.environ.get('DEBUG', False)) +# DEBUG = os.environ.get('DEBUG') == 'TRUE' # ALLOWED_HOSTS = [] @@ -156,6 +157,6 @@ DATABASES['default'].update(dj_database_url.config(conn_max_age=500, ssl_require SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # Allow all host headers -ALLOWED_HOSTS = ['*'] +#ALLOWED_HOSTS = ['*'] django_heroku.settings(locals())