diff --git a/steering/settings.py b/steering/settings.py index 059532b2d0a501f6c78c3020cd3f74737527b641..29b5148d86ccd6bea5101c20a464ec75588380f0 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(