File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -76,20 +76,26 @@ Using with other storages
76
76
77
77
You can also use your own custom storage, for example, if you want to use S3 for your assets : ::
78
78
79
- STATICFILES_STORAGE = 'your.app.S3PipelineStorage '
79
+ STATICFILES_STORAGE = 'your.app.S3PipelineManifestStorage '
80
80
81
- Your storage only need to inherit from ``PipelineMixin `` and/or ``CachedFilesMixin `` : ::
81
+ Your storage only needs to inherit from ``PipelineMixin `` and ``ManifestFilesMixin `` or `` CachedFilesMixin ``.
82
82
83
- from django.contrib.staticfiles.storage import CachedFilesMixin
83
+ In Django 1.7+ you should use `ManifestFilesMixin <https://docs.djangoproject.com/en/1.7/ref/contrib/staticfiles/#manifeststaticfilesstorage >`_
84
+ unless you don't have access to the local filesystem in which case you should use ``CachedFilesMixin ``. ::
85
+
86
+ from django.contrib.staticfiles.storage import CachedFilesMixin, ManifestFilesMixin
84
87
85
88
from pipeline.storage import PipelineMixin
86
89
87
90
from storages.backends.s3boto import S3BotoStorage
88
91
92
+ class S3PipelineManifestStorage(PipelineMixin, ManifestFilesMixin, S3BotoStorage):
93
+ pass
89
94
90
- class S3PipelineStorage (PipelineMixin, CachedFilesMixin, S3BotoStorage):
95
+ class S3PipelineCachedStorage (PipelineMixin, CachedFilesMixin, S3BotoStorage):
91
96
pass
92
97
98
+
93
99
Using Pipeline with Bower
94
100
=========================
95
101
You can’t perform that action at this time.
0 commit comments