Skip to content
Snippets Groups Projects
Commit 1c7dbbf0 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Fix getting boolean and list environment variables

parent 98dc06ac
No related branches found
No related tags found
No related merge requests found
Pipeline #2168 failed
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment