From 6b054c11a13b37ae8ffedc9cdabb3ff7691a6951 Mon Sep 17 00:00:00 2001 From: Zoran Sinnema Date: Thu, 19 Dec 2019 14:04:53 +0100 Subject: [PATCH] feat: added some logic to settings file DEBUG option to set debug via OS env --- scidash/main/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scidash/main/settings.py b/scidash/main/settings.py index 9d0b0b9c..26f700b7 100644 --- a/scidash/main/settings.py +++ b/scidash/main/settings.py @@ -34,7 +34,8 @@ SECRET_KEY = '4*0@ca#ocm*(1=12m(bfb2p8e$sk-%i4xlj=%$wkj3*&gs!%sr' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +# Se via OS env, defaults to False +DEBUG = TEMPLATE_DEBUG = os.environ.get('DEBUG', False) ALLOWED_HOSTS = [ "*"