From 4ccbe25f251f12c34d274e099e548d6effa13f81 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Tue, 16 Oct 2018 03:26:03 +0300 Subject: [PATCH] the allowedhosts value was a list, and I was putting it inside another list [ ] set to ALLOWED_HOSTS --- share/templates/conf/django/files/local.jinja2 | 2 +- share/templates/conf/gunicorn/files/local.jinja2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/templates/conf/django/files/local.jinja2 b/share/templates/conf/django/files/local.jinja2 index 96c3f20..4454550 100644 --- a/share/templates/conf/django/files/local.jinja2 +++ b/share/templates/conf/django/files/local.jinja2 @@ -70,7 +70,7 @@ USE_DEBUG_TOOLBAR = DEBUG # allow template debug outputs on {{ project_branch }} environment INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ] -ALLOWED_HOSTS = [configuration.project.allowedhosts] +ALLOWED_HOSTS = configuration.project.allowedhosts # ----------------------------------------- # Debug logging to the console diff --git a/share/templates/conf/gunicorn/files/local.jinja2 b/share/templates/conf/gunicorn/files/local.jinja2 index 96c3f20..4454550 100644 --- a/share/templates/conf/gunicorn/files/local.jinja2 +++ b/share/templates/conf/gunicorn/files/local.jinja2 @@ -70,7 +70,7 @@ USE_DEBUG_TOOLBAR = DEBUG # allow template debug outputs on {{ project_branch }} environment INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ] -ALLOWED_HOSTS = [configuration.project.allowedhosts] +ALLOWED_HOSTS = configuration.project.allowedhosts # ----------------------------------------- # Debug logging to the console