Commit 60ca9309 by Ian Spivey Committed by Timothée Peignier

Improves documentation to recommend ManifestFilesMixin

* Adds ManifestFilesMixin as alternative to CachedFilesMixin and links
  to Django documentation.
parent d0c073f7
......@@ -76,20 +76,26 @@ Using with other storages
You can also use your own custom storage, for example, if you want to use S3 for your assets : ::
STATICFILES_STORAGE = 'your.app.S3PipelineStorage'
STATICFILES_STORAGE = 'your.app.S3PipelineManifestStorage'
Your storage only need to inherit from ``PipelineMixin`` and/or ``CachedFilesMixin`` : ::
Your storage only needs to inherit from ``PipelineMixin`` and ``ManifestFilesMixin`` or ``CachedFilesMixin``.
from django.contrib.staticfiles.storage import CachedFilesMixin
In Django 1.7+ you should use `ManifestFilesMixin <https://docs.djangoproject.com/en/1.7/ref/contrib/staticfiles/#manifeststaticfilesstorage>`_
unless you don't have access to the local filesystem in which case you should use ``CachedFilesMixin``. ::
from django.contrib.staticfiles.storage import CachedFilesMixin, ManifestFilesMixin
from pipeline.storage import PipelineMixin
from storages.backends.s3boto import S3BotoStorage
class S3PipelineManifestStorage(PipelineMixin, ManifestFilesMixin, S3BotoStorage):
pass
class S3PipelineStorage(PipelineMixin, CachedFilesMixin, S3BotoStorage):
class S3PipelineCachedStorage(PipelineMixin, CachedFilesMixin, S3BotoStorage):
pass
Using Pipeline with Bower
=========================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment