Skip to content

Commit c566233

Browse files
authored
Add note to specify COMPRESS_OFFLINE_MANIFEST_STORAGE (django-compressor#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.
1 parent 39bc91a commit c566233

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/remote-storages.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ apps can be integrated.
7070
super().save(name, self.local_storage._open(name))
7171
return name
7272

73-
#. Set your :attr:`~django.conf.settings.COMPRESS_STORAGE` and STATICFILES_STORAGE_
74-
settings to the dotted path of your custom cached storage backend, e.g.
73+
#. Set your :attr:`~django.conf.settings.COMPRESS_STORAGE`, STATICFILES_STORAGE_
74+
and :attr:`~django.conf.settings.COMPRESS_OFFLINE_MANIFEST_STORAGE` settings
75+
to the dotted path of your custom cached storage backend, e.g.
7576
``'mysite.storage.CachedS3Boto3Storage'``.
7677

7778
#. 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::
8586
COMPRESS_ROOT = STATIC_ROOT
8687
STATICFILES_STORAGE = 'mysite.storage.CachedS3BotoStorage'
8788
COMPRESS_STORAGE = STATICFILES_STORAGE
89+
COMPRESS_OFFLINE_MANIFEST_STORAGE = STATICFILES_STORAGE
8890
STATIC_URL = 'https://compressor-test.s3.amazonaws.com/'
8991
COMPRESS_URL = STATIC_URL
9092

0 commit comments

Comments
 (0)