Update DEBUG setting and configure allowed hosts in settings.py
All checks were successful
Build and push Docker image / build (push) Successful in 2m18s

This commit is contained in:
Edgar P. Burkhart 2025-06-14 17:19:36 +02:00
parent bcd3c723a8
commit 6046b7326c
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -24,10 +24,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "django-insecure-&z*xu$^w8btr(%1!y#+0a98)l_q*+*6z54611pi678mdpsar_="
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = "DEBUG" in os.environ
ALLOWED_HOSTS = []
CSRF_TRUSTED_ORIGINS = ["https://localhost"]
HOST = os.getenv("MUSIK_HOST", "localhost")
ALLOWED_HOSTS = [HOST]
CSRF_TRUSTED_ORIGINS = [f"https://{HOST}"]
# Application definition