static and media url fix

This commit is contained in:
javad committed 2026-09-11 12:42:30 +03:30
1 parent 3a8f428461
commit 372f962f0f
7 files changed
+47 -9

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ if not env_list("DJANGO_ALLOWED_HOSTS"):
raise ImproperlyConfigured("DJANGO_ALLOWED_HOSTS must contain the public production host.")
if not CSRF_TRUSTED_ORIGINS:
raise ImproperlyConfigured("CSRF_TRUSTED_ORIGINS must contain the public HTTPS origin.")
if len(MEDIA_SIGNING_SECRET) < 32:
if MEDIA_SIGNING_SECRET == "Set MEDIA_SIGNING_SECRET in Coolify" or len(MEDIA_SIGNING_SECRET) < 32:
raise ImproperlyConfigured("MEDIA_SIGNING_SECRET must be a random secret of at least 32 characters.")
SESSION_COOKIE_SECURE = True