setting to avoid gateway post problem

This commit is contained in:
Parsa Nazer
2025-03-15 01:49:36 +03:30
parent 5ed9a7cda1
commit 7145570fac
+8 -1
View File
@@ -13,4 +13,11 @@ MEDIA_URL = '/shop_media/'
MEDIA_ROOT = 'app/media'
STATIC_URL = '/shop_static/'
STATIC_ROOT = 'app/static'
STATIC_ROOT = 'app/static'
# ==============================================================================
# to avoid gateway post problem
# ==============================================================================
USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')