This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
move allowed hosts to settings.py
pull/66/head
Ben Parees
9 years ago
parent
28ce74503e
commit
4170089b8e
4 changed files
with
5 additions
and
17 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-4
openshift/templates/django-postgresql-persistent.json
+0
-4
openshift/templates/django-postgresql.json
+4
-8
openshift/templates/django.json
+1
-1
project/settings.py
+ 0
- 4
openshift/templates/django-postgresql-persistent.json
View File
@ -217,10 +217,6 @@
{
"name"
:
"DJANGO_SECRET_KEY"
,
"value"
:
"${DJANGO_SECRET_KEY}"
}
,
{
"name"
:
"ALLOWED_HOSTS"
,
"value"
:
"['*']"
}
]
,
"resources"
:
{
+ 0
- 4
openshift/templates/django-postgresql.json
View File
@ -217,10 +217,6 @@
{
"name"
:
"DJANGO_SECRET_KEY"
,
"value"
:
"${DJANGO_SECRET_KEY}"
}
,
{
"name"
:
"ALLOWED_HOSTS"
,
"value"
:
"['*']"
}
]
,
"resources"
:
{
+ 4
- 8
openshift/templates/django.json
View File
@ -216,16 +216,12 @@
{
"name"
:
"DJANGO_SECRET_KEY"
,
"value"
:
"${DJANGO_SECRET_KEY}"
}
,
{
"name"
:
"ALLOWED_HOSTS"
,
"value"
:
"['*']"
}
}
]
,
"resources"
:
{
"limits"
:
{
"memory"
:
"${MEMORY_LIMIT}"
}
"limits"
:
{
"memory"
:
"${MEMORY_LIMIT}"
}
}
}
]
+ 1
- 1
project/settings.py
View File
@ -30,7 +30,7 @@ SECRET_KEY = os.getenv(
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
ALLOWED_HOSTS
=
[
]
ALLOWED_HOSTS
=
[
'
*
'
]
# Application definition
Write
Preview
Loading…
Cancel
Save