From 19f8f51234cad88ae470581fe03c4bae6faa45e5 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 16 Aug 2018 15:18:41 +0900 Subject: [PATCH] Update DEBUG variable --- app/app/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app/settings.py b/app/app/settings.py index d98b884b..cd439d07 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -26,7 +26,9 @@ 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 = True +DEBUG = bool(os.environ.get('DEBUG', True)) + # ALLOWED_HOSTS = []