aboutsummaryrefslogtreecommitdiffstats
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
commitef7b82d3912c5044b6ee84e807a86f930a2c28aa (patch)
tree328a9f7243c63cf02d0bab2d9156f8addb9251bf
parent29f39e35fa242d77357bf153f255e87960b00a4d (diff)
parente5fa48646ca278bf997c103873e5fb685248f646 (diff)
Merge "Ensure DEBUG is set as a Boolean"
-rw-r--r--src/pharos_dashboard/settings.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pharos_dashboard/settings.py b/src/pharos_dashboard/settings.py
index fa5879f..361c4a1 100644
--- a/src/pharos_dashboard/settings.py
+++ b/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