From 4170089b8e50a83cde05e714494ae7448415cde4 Mon Sep 17 00:00:00 2001 From: Ben Parees Date: Wed, 2 Nov 2016 15:27:35 -0400 Subject: [PATCH] move allowed hosts to settings.py --- .../templates/django-postgresql-persistent.json | 4 ---- openshift/templates/django-postgresql.json | 4 ---- openshift/templates/django.json | 12 ++++-------- project/settings.py | 2 +- 4 files changed, 5 insertions(+), 17 deletions(-) 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