Update DEBUG setting and configure allowed hosts in settings.py
All checks were successful
Build and push Docker image / build (push) Successful in 2m18s
All checks were successful
Build and push Docker image / build (push) Successful in 2m18s
This commit is contained in:
parent
bcd3c723a8
commit
6046b7326c
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue