Commit f022b8e4 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'docker-fix-missing-localhost' into 'master'

Fix ALLOWED_HOSTS when env var is not set

See merge request !176
parents 584f1ca0 036ed6a3
......@@ -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