From c566233cfaffc92a991adb119b2cc708c49668e2 Mon Sep 17 00:00:00 2001 From: Jack Linke <73554672+jacklinke@users.noreply.github.com> Date: Wed, 30 Nov 2022 05:47:26 -0500 Subject: 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. --- docs/remote-storages.txt | 6 ++++-- 1 file 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 -- cgit v1.2.1