From 17166eb4adeaedda13ae3822b2d49fe79738c689 Mon Sep 17 00:00:00 2001 From: Jenny Danzmayr Date: Sun, 12 Nov 2023 16:25:42 +0100 Subject: [PATCH] default ALLOWED_HOSTS to "*" if not configured --- src/c3nav/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/settings.py b/src/c3nav/settings.py index 160035cd..67e58e32 100644 --- a/src/c3nav/settings.py +++ b/src/c3nav/settings.py @@ -152,7 +152,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' STATIC_URL = config.get('urls', 'static', fallback='/static/') -ALLOWED_HOSTS = [n for n in config.get('django', 'hosts', fallback='').split(',') if n] +ALLOWED_HOSTS = [n for n in config.get('django', 'hosts', fallback='*').split(',') if n] LANGUAGE_CODE = config.get('locale', 'default', fallback='en') TIME_ZONE = config.get('locale', 'timezone', fallback='UTC')