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