We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0328c4 commit 83be7a9Copy full SHA for 83be7a9
controller/settings.py
@@ -32,10 +32,13 @@
32
STATIC_ROOT = os.path.join(BASE_DIR, "assets/static")
33
MEDIA_ROOT = os.path.join(BASE_DIR, "assets/media")
34
35
-if not DEBUG:
36
- ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "").split(",")
+
+ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "").split(",")
37
38
+if os.getenv("CSRF_TRUSTED_ORIGINS", ""):
39
CSRF_TRUSTED_ORIGINS = os.getenv("CSRF_TRUSTED_ORIGINS", "").split(",")
-else:
40
41
+if DEBUG:
42
ALLOWED_HOSTS = ["*"]
43
44
# Application definition
0 commit comments