Commit f323c805 authored by alexandre.jauneau's avatar alexandre.jauneau

Add 127.0.0.1 in ALLOWED_HOST on DEBUG

parent 4adcced7
......@@ -300,11 +300,15 @@ with open(SECRET_FILE, 'r') as f:
#
# Add allowed hosts from environment
# Automaticaly add 127.0.0.1 in ALLOWED_HOSTS on DEBUG
#
if 'DJANGO_ALLOWED_HOSTS' in os.environ:
ALLOWED_HOSTS += os.environ.get('DJANGO_ALLOWED_HOSTS').split(',')
if DEBUG:
ALLOWED_HOSTS += ['127.0.0.1', 'localhost']
#
# Raven configuration
#
......
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