Fix CSS path prefix when S3 storage is used

django-sass-processor 1.4 looks up OPTIONS using `sass_processor`
instead of `staticfiles`.

Fixes #3383.
This commit is contained in:
YOSHIOKA Takuma 2024-06-13 05:03:10 +09:00
parent 3545a1c3b6
commit 1a2f434514
No known key found for this signature in database
GPG key ID: EF2059A2B64518D7

View file

@ -404,6 +404,13 @@ if USE_S3:
"default_acl": "public-read", "default_acl": "public-read",
}, },
}, },
"sass_processor": {
"BACKEND": "storages.backends.s3.S3Storage",
"OPTIONS": {
"location": "static",
"default_acl": "public-read",
},
},
"exports": { "exports": {
"BACKEND": "storages.backends.s3.S3Storage", "BACKEND": "storages.backends.s3.S3Storage",
"OPTIONS": { "OPTIONS": {