summaryrefslogtreecommitdiffstats
path: root/dashboard/src/pharos_dashboard/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/pharos_dashboard/settings.py')
-rw-r--r--dashboard/src/pharos_dashboard/settings.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dashboard/src/pharos_dashboard/settings.py b/dashboard/src/pharos_dashboard/settings.py
index 240f68e..361c4a1 100644
--- a/dashboard/src/pharos_dashboard/settings.py
+++ b/dashboard/src/pharos_dashboard/settings.py
@@ -5,7 +5,9 @@ from datetime import timedelta
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
+# NOTE: os.environ only returns strings, so making a comparison to
+# 'True' here will convert it to the correct Boolean value.
+DEBUG = os.environ['DEBUG'] == 'True'
# Application definition