Unverified Commit 036ed6a3 authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Fix ALLOWED_HOSTS when env var is not set

parent 584f1ca0
......@@ -22,7 +22,8 @@ SECRET_KEY = os.environ.get(
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get('DJANGO_DEBUG') == 'True'
ALLOWED_HOSTS = os.environ.get('DJANGO_HOSTS', '').split(',')
if 'DJANGO_HOSTS' in os.environ:
ALLOWED_HOSTS = os.environ.get('DJANGO_HOSTS').split(',')
# Database settings
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