On assure le debug même sur le serveur de prod

This commit is contained in:
Jean-Marie Favreau 2023-11-15 19:21:43 +01:00
parent f8929de6ac
commit eeef839c4f

View File

@ -17,6 +17,9 @@ ALLOWED_HOSTS = os_getenv("ALLOWED_HOSTS", "localhost").split(",")
if DEBUG:
CSRF_TRUSTED_ORIGINS = os_getenv("CSRF_TRUSTED_ORIGINS", "http://localhost").split(
","
)
CORS_ORIGIN_ALLOW_ALL = True
else:
CSRF_TRUSTED_ORIGINS = os_getenv("CSRF_TRUSTED_ORIGINS", "http://localhost").split(