diff --git a/openshift/templates/django-postgresql-persistent.json b/openshift/templates/django-postgresql-persistent.json index adb3ba3..44e54d1 100644 --- a/openshift/templates/django-postgresql-persistent.json +++ b/openshift/templates/django-postgresql-persistent.json @@ -217,10 +217,6 @@ { "name": "DJANGO_SECRET_KEY", "value": "${DJANGO_SECRET_KEY}" - }, - { - "name": "ALLOWED_HOSTS", - "value": "['*']" } ], "resources": { diff --git a/openshift/templates/django-postgresql.json b/openshift/templates/django-postgresql.json index 91c9fea..590d5fd 100644 --- a/openshift/templates/django-postgresql.json +++ b/openshift/templates/django-postgresql.json @@ -217,10 +217,6 @@ { "name": "DJANGO_SECRET_KEY", "value": "${DJANGO_SECRET_KEY}" - }, - { - "name": "ALLOWED_HOSTS", - "value": "['*']" } ], "resources": { diff --git a/openshift/templates/django.json b/openshift/templates/django.json index 6b244c8..7cbcb90 100644 --- a/openshift/templates/django.json +++ b/openshift/templates/django.json @@ -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}" + } } } ] diff --git a/project/settings.py b/project/settings.py index c8e5832..b0c0fa6 100644 --- a/project/settings.py +++ b/project/settings.py @@ -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