Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
f323c805
Commit
f323c805
authored
Apr 23, 2017
by
alexandre.jauneau
Browse files
Add 127.0.0.1 in ALLOWED_HOST on DEBUG
parent
4adcced7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/memopol/settings.py
View file @
f323c805
...
...
@@ -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
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment