use the allowedhosts variable in place of the other two. even if allowed_hosts is not set in conf, the host extended host name will be used anyway

This commit is contained in:
Ronny Abraham 2018-10-16 03:04:13 +03:00
parent d9e5f5edd1
commit d57781436b
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ USE_DEBUG_TOOLBAR = DEBUG
# allow template debug outputs on {{ project_branch }} environment # allow template debug outputs on {{ project_branch }} environment
INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ] INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ]
ALLOWED_HOSTS = [configuration.project.extendedname, configuration.project.host] ALLOWED_HOSTS = [configuration.project.allowedhosts]
# ----------------------------------------- # -----------------------------------------
# Debug logging to the console # Debug logging to the console

View file

@ -70,7 +70,7 @@ USE_DEBUG_TOOLBAR = DEBUG
# allow template debug outputs on {{ project_branch }} environment # allow template debug outputs on {{ project_branch }} environment
INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ] INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ]
ALLOWED_HOSTS = [configuration.project.extendedname, ] ALLOWED_HOSTS = [configuration.project.allowedhosts]
# ----------------------------------------- # -----------------------------------------
# Debug logging to the console # Debug logging to the console