summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Linke <73554672+jacklinke@users.noreply.github.com>2022-11-30 05:47:26 -0500
committerGitHub <noreply@github.com>2022-11-30 11:47:26 +0100
commitc566233cfaffc92a991adb119b2cc708c49668e2 (patch)
treef1c92b3a0684f81194d80319b6198c2d9b6430d1
parent39bc91ac1457ed00188898a15b399a9d77f1dca0 (diff)
downloaddjango-compressor-c566233cfaffc92a991adb119b2cc708c49668e2.tar.gz
Add note to specify `COMPRESS_OFFLINE_MANIFEST_STORAGE` (#1160)
With the addition of `COMPRESS_OFFLINE_MANIFEST_STORAGE`, if using boto3 with offline compression, manifest.json may never make it to the remote storage if this setting is not manually specified.
-rw-r--r--docs/remote-storages.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/remote-storages.txt b/docs/remote-storages.txt
index 1a8fd44..79bb051 100644
--- a/docs/remote-storages.txt
+++ b/docs/remote-storages.txt
@@ -70,8 +70,9 @@ apps can be integrated.
super().save(name, self.local_storage._open(name))
return name
-#. Set your :attr:`~django.conf.settings.COMPRESS_STORAGE` and STATICFILES_STORAGE_
- settings to the dotted path of your custom cached storage backend, e.g.
+#. Set your :attr:`~django.conf.settings.COMPRESS_STORAGE`, STATICFILES_STORAGE_
+ and :attr:`~django.conf.settings.COMPRESS_OFFLINE_MANIFEST_STORAGE` settings
+ to the dotted path of your custom cached storage backend, e.g.
``'mysite.storage.CachedS3Boto3Storage'``.
#. To have Django correctly render the URLs to your static files, set the
@@ -85,6 +86,7 @@ In the end it might look like this::
COMPRESS_ROOT = STATIC_ROOT
STATICFILES_STORAGE = 'mysite.storage.CachedS3BotoStorage'
COMPRESS_STORAGE = STATICFILES_STORAGE
+ COMPRESS_OFFLINE_MANIFEST_STORAGE = STATICFILES_STORAGE
STATIC_URL = 'https://compressor-test.s3.amazonaws.com/'
COMPRESS_URL = STATIC_URL