From 1c7dbbf07b04d9941665ef9a1c9df614e1f1f008 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Fri, 15 Jul 2022 11:32:30 -0400
Subject: [PATCH] Fix getting boolean and list environment variables

---
 steering/settings.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/steering/settings.py b/steering/settings.py
index 059532b2..29b5148d 100644
--- a/steering/settings.py
+++ b/steering/settings.py
@@ -18,13 +18,13 @@ STATIC_URL = "/static/"
 
 ROOT_URLCONF = "steering.urls"
 
-DEBUG = os.getenv("DEBUG", default=False)
+DEBUG = True if os.getenv("DEBUG") else False
 SITE_ID = 1
 ADMINS = ()
 MANAGERS = ADMINS
 
 # Must be set if DEBUG is False
-ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", default=["127.0.0.1", "localhost"])
+ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", default="127.0.0.1,localhost").split(",")
 
 # Whitelist origins that access the API
 CORS_ALLOWED_ORIGINS = os.getenv(
-- 
GitLab