From 01eb5c86bbfd13e523af6dc6a29f592798573e31 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 25 Jul 2020 13:55:12 +0200 Subject: [PATCH] "".split(",") == [""] --- KeRS/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KeRS/settings.py b/KeRS/settings.py index 6f1b8da..8d31dab 100644 --- a/KeRS/settings.py +++ b/KeRS/settings.py @@ -24,7 +24,8 @@ SECRET_KEY = os.getenv('SECRET_KEY', '2r@t7^g4-@980!oo-v!1+wj+0o^s&m(+yyyt#2&k2e # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.getenv('DEBUG', '1') == '1' -ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '').split(',') +_allowed_hosts = os.getenv('ALLOWED_HOSTS') +ALLOWED_HOSTS = _allowed_hosts.split(',') if _allowed_hosts else [] # Application definition