Describes how to use Pipeline when it is installed and configured.
Pipeline integrates with staticfiles, you just need to setup
STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
Then when you run
$ python manage.py collectstatic
Pipeline 1.2+ no longer provides its own cache-busting URL support (using e.g. the
PIPELINE_VERSIONING setting) but uses
Django’s built-in staticfiles support for this. To set up cache-busting in conjunction with
collectstatic as above, use
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
This will handle cache-busting just as
To enable HTML compression add
Ensure that it comes after any middleware which modifies your HTML, like
MIDDLEWARE_CLASSES = ( 'django.middleware.gzip.GZipMiddleware', 'pipeline.middleware.MinifyHTMLMiddleware', )
To do so, you just need to add manifesto app to your
Pipeline also includes Jinja2 support and is used almost identically to the Django Template tags implementation.
You just need to pass
pipeline.templatetags.ext.PipelineExtension to your Jinja2 environment.
Unlike the Django template tag implementation the Jinja2 implementation uses different templates, so if you wish to override them please override pipeline/css.jinja and pipeline/js.jinja.