summaryrefslogtreecommitdiffstats
path: root/dashboard
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2018-02-12 14:21:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-12 14:21:00 +0000
commit8ff202f7c95e5d063143b0703d42a4e8b2b35af4 (patch)
treecf44782148e6aa29a0240fb5358b76fbce9ace09 /dashboard
parenta0eb76b050cbc18602efe719d83d0eafa88d8db9 (diff)
parent66d862611a51b3c12813b4752819230e15f2a472 (diff)
Merge "Ensure DEBUG is set as a Boolean"
Diffstat (limited to 'dashboard')
-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 fa5879f..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 = os.environ['DEBUG']
+# 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