Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit c4727a0

Browse files
authored
Merge pull request sclorg#66 from bparees/allowed_hosts
move allowed hosts to settings.py
2 parents 28ce745 + 4170089 commit c4727a0

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

openshift/templates/django-postgresql-persistent.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@
217217
{
218218
"name": "DJANGO_SECRET_KEY",
219219
"value": "${DJANGO_SECRET_KEY}"
220-
},
221-
{
222-
"name": "ALLOWED_HOSTS",
223-
"value": "['*']"
224220
}
225221
],
226222
"resources": {

openshift/templates/django-postgresql.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@
217217
{
218218
"name": "DJANGO_SECRET_KEY",
219219
"value": "${DJANGO_SECRET_KEY}"
220-
},
221-
{
222-
"name": "ALLOWED_HOSTS",
223-
"value": "['*']"
224220
}
225221
],
226222
"resources": {

openshift/templates/django.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,12 @@
216216
{
217217
"name": "DJANGO_SECRET_KEY",
218218
"value": "${DJANGO_SECRET_KEY}"
219-
},
220-
{
221-
"name": "ALLOWED_HOSTS",
222-
"value": "['*']"
223-
}
219+
}
224220
],
225221
"resources": {
226-
"limits": {
227-
"memory": "${MEMORY_LIMIT}"
228-
}
222+
"limits": {
223+
"memory": "${MEMORY_LIMIT}"
224+
}
229225
}
230226
}
231227
]

project/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# SECURITY WARNING: don't run with debug turned on in production!
3131
DEBUG = True
3232

33-
ALLOWED_HOSTS = []
33+
ALLOWED_HOSTS = ['*']
3434

3535

3636
# Application definition

0 commit comments

Comments
 (0)