Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
380ff0cd
Commit
380ff0cd
authored
May 18, 2017
by
okhin
Browse files
#19
if we didn't defined anenvironment variable, just leave ALLOWED_HOSTS as it is
parent
deb24f73
Pipeline
#1052
passed with stages
in 2 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
project/settings/hosts.py
View file @
380ff0cd
...
...
@@ -10,5 +10,5 @@ from .env import DEBUG
if
DEBUG
:
ALLOWED_HOSTS
=
[
'*'
]
el
se
:
el
if
'DJANGO_ALLOWED_HOSTS'
in
os
.
environ
:
ALLOWED_HOSTS
=
[
os
.
environ
[
'DJANGO_ALLOWED_HOSTS'
]]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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