Commit fe2a51d1 authored by BAIRE Anthony's avatar BAIRE Anthony

fix parsing the ALLGO_DEBUG variable

parent c690ca8e
Pipeline #56557 failed with stage
in 54 seconds
......@@ -10,6 +10,8 @@ ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
APPS_DIR = os.path.join(ROOT_DIR, 'allgo')
#FIXME: we should rather do these type conversions in config/ because
# this is very error prone
def parse_bool(value):
if value.lower() in (1, "true"):
return True
......@@ -52,7 +54,7 @@ SECRET_KEY = load_secret_key(env.ALLGO_SECRET_KEY_PATH, int(env.ALLGO_SECRET_KEY
# ------------------------------------------------------------------------------
DEBUG = parse_bool(env.ALLGO_DEBUG)
# Allgo is expected to be hosted behind a reverse proxy, thus we trust the
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment