From 6b166ce8f505bd63f41583b95733dffda6b77083 Mon Sep 17 00:00:00 2001 From: Erich Hasl Date: Mon, 3 Jul 2017 23:37:07 +0200 Subject: [PATCH] add debug environment variable --- jdav_web/jdav_web/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdav_web/jdav_web/settings.py b/jdav_web/jdav_web/settings.py index 8a3e72b..e4ef85f 100644 --- a/jdav_web/jdav_web/settings.py +++ b/jdav_web/jdav_web/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', '6_ew6l1r9_4(8=p8quv(e8b+z+k+*wm7&zxx%mcnnec99a!lpw') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.environ.get('DJANGO_DEBUG', '1') == '1' ALLOWED_HOSTS = os.environ.get('DJANGO_ALLOWED_HOST', '').split(",")