From cc8b6fa75e97c58ebd7b2db13a79fefd90f62334 Mon Sep 17 00:00:00 2001 From: Tobias Mieves <tobias.mieves@tu-dortmund.de> Date: Sat, 29 Apr 2023 16:10:26 +0200 Subject: [PATCH] fix: ALLOWED_HOSTS has the wrong format --- .gitignore | 3 ++- core/settings.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 858a2f1..d976935 100644 --- a/.gitignore +++ b/.gitignore @@ -148,4 +148,5 @@ cython_debug/ # Apps wedding/ -wishlist/ \ No newline at end of file +wishlist/ +/static/core/css/output.css diff --git a/core/settings.py b/core/settings.py index 2d6b7f8..bd70adb 100644 --- a/core/settings.py +++ b/core/settings.py @@ -21,13 +21,13 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = "*wqhm+a(l3dy4v22%l@iv2+!x2k)@%&x1zirod17%7@!_2kq96" # env["SECRET_KEY"] +SECRET_KEY = env["SECRET_KEY"] # SECURITY WARNING: don't run with debug turned on in production! DEBUG = env.get("DEBUG", False) -ALLOWED_HOSTS = env.get("ALLOWED_HOSTS", ["localhost"]) -CSRF_TRUSTED_ORIGINS = env.get("CSRF_TRUSTED_ORIGINS", ["http://localhost"]) +ALLOWED_HOSTS = [env.get("ALLOWED_HOSTS", "localhost")] +CSRF_TRUSTED_ORIGINS = [env.get("CSRF_TRUSTED_ORIGINS", "http://localhost")] # Application definition -- GitLab