Skip to content
Snippets Groups Projects
Commit cc8b6fa7 authored by Tobias Mieves's avatar Tobias Mieves :sparkles:
Browse files

fix: ALLOWED_HOSTS has the wrong format

parent bd5a5dba
No related branches found
No related tags found
No related merge requests found
Pipeline #159263 passed
...@@ -148,4 +148,5 @@ cython_debug/ ...@@ -148,4 +148,5 @@ cython_debug/
# Apps # Apps
wedding/ wedding/
wishlist/ wishlist/
\ No newline at end of file /static/core/css/output.css
...@@ -21,13 +21,13 @@ BASE_DIR = Path(__file__).resolve().parent.parent ...@@ -21,13 +21,13 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # 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! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env.get("DEBUG", False) DEBUG = env.get("DEBUG", False)
ALLOWED_HOSTS = env.get("ALLOWED_HOSTS", ["localhost"]) ALLOWED_HOSTS = [env.get("ALLOWED_HOSTS", "localhost")]
CSRF_TRUSTED_ORIGINS = env.get("CSRF_TRUSTED_ORIGINS", ["http://localhost"]) CSRF_TRUSTED_ORIGINS = [env.get("CSRF_TRUSTED_ORIGINS", "http://localhost")]
# Application definition # Application definition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment