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
526de187
Commit
526de187
authored
Mar 19, 2019
by
Okhin
Browse files
Adding internal IP to get DDT to work
parent
11a6248b
Pipeline
#2505
passed with stages
in 3 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
project/settings/hosts.py
View file @
526de187
...
...
@@ -10,5 +10,6 @@ from .env import DEBUG
if
DEBUG
:
ALLOWED_HOSTS
=
[
'*'
]
INTERNAL_IPS
=
(
'127.0.0.1'
,)
elif
'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