Browse Source

Merge pull request #66 from bparees/allowed_hosts

move allowed hosts to settings.py
pull/67/head
Ben Parees 9 years ago
committed by GitHub
parent
commit
c4727a081b
4 changed files with 5 additions and 17 deletions
  1. +0
    -4
      openshift/templates/django-postgresql-persistent.json
  2. +0
    -4
      openshift/templates/django-postgresql.json
  3. +4
    -8
      openshift/templates/django.json
  4. +1
    -1
      project/settings.py

+ 0
- 4
openshift/templates/django-postgresql-persistent.json View File

@ -217,10 +217,6 @@
{ {
"name": "DJANGO_SECRET_KEY", "name": "DJANGO_SECRET_KEY",
"value": "${DJANGO_SECRET_KEY}" "value": "${DJANGO_SECRET_KEY}"
},
{
"name": "ALLOWED_HOSTS",
"value": "['*']"
} }
], ],
"resources": { "resources": {


+ 0
- 4
openshift/templates/django-postgresql.json View File

@ -217,10 +217,6 @@
{ {
"name": "DJANGO_SECRET_KEY", "name": "DJANGO_SECRET_KEY",
"value": "${DJANGO_SECRET_KEY}" "value": "${DJANGO_SECRET_KEY}"
},
{
"name": "ALLOWED_HOSTS",
"value": "['*']"
} }
], ],
"resources": { "resources": {


+ 4
- 8
openshift/templates/django.json View File

@ -216,16 +216,12 @@
{ {
"name": "DJANGO_SECRET_KEY", "name": "DJANGO_SECRET_KEY",
"value": "${DJANGO_SECRET_KEY}" "value": "${DJANGO_SECRET_KEY}"
},
{
"name": "ALLOWED_HOSTS",
"value": "['*']"
}
}
], ],
"resources": { "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! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition # Application definition


Loading…
Cancel
Save