edit storage in settings
This commit is contained in:
1 parent
5e29e9d902
commit
2dde1c8a0f
1 file changed
+4
@@ -4,7 +4,11 @@ STATIC_URL = '/static/'
|
||||
STATIC_ROOT = '/app/staticfiles'
|
||||
#DEBUG = False
|
||||
# 🚀 اضافه کردن تنظیمات ذخیرهسازی وایتنویز
|
||||
# 🚀 اصلاح تنظیمات ذخیرهسازی برای جنگو ۴.۲ و بالاتر
|
||||
STORAGES = {
|
||||
"default": {
|
||||
"BACKEND": "django.core.files.storage.FileSystemStorage",
|
||||
},
|
||||
"staticfiles": {
|
||||
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user