From 1a2f434514ebdf8d474d8a6b04013651ec36edf9 Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Thu, 13 Jun 2024 05:03:10 +0900 Subject: [PATCH] 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. --- bookwyrm/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index c075c9c87..6da6f4bae 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -404,6 +404,13 @@ if USE_S3: "default_acl": "public-read", }, }, + "sass_processor": { + "BACKEND": "storages.backends.s3.S3Storage", + "OPTIONS": { + "location": "static", + "default_acl": "public-read", + }, + }, "exports": { "BACKEND": "storages.backends.s3.S3Storage", "OPTIONS": {