Commit 349d5a8e by Michael Angeletti Committed by Timothée Peignier

Updated usage docs to reflect the PIPELINE_ENABLED setting

parent e22722e7
...@@ -16,9 +16,15 @@ They are used to output the ``<link>`` and ``<script>``-tags for the ...@@ -16,9 +16,15 @@ They are used to output the ``<link>`` and ``<script>``-tags for the
specified CSS/JavaScript-groups (as specified in the settings). specified CSS/JavaScript-groups (as specified in the settings).
The first argument must be the name of the CSS/JavaScript group. The first argument must be the name of the CSS/JavaScript group.
The templatetags will either output the source filenames or the compressed filenames, When ``settings.DEBUG`` is set to ``True`` the use of these template tags will
depending on the ``PIPELINE`` setting, if you do not specify the ``PIPELINE`` setting, result in a separate tag for each resource in a given group (i.e., the
the source files will be used in DEBUG-mode, and compressed files in non-DEBUG-mode. combined, compressed files will not be used), in order to make local debugging
easy. When ``settings.DEBUG`` is set to ``False`` the opposite is true. You can
override the default behavior by setting ``settings.PIPELINE_ENABLED``
manually. When set to ``True`` or ``False`` this enables or disables,
respectively, the usage of the combined, compressed file for each resource
group. This can be useful, if you encounter errors in your compressed code that
don't occur in your uncompressed code and you want to debug them locally.
If you need to change the output of the HTML-tags generated from the templatetags, If you need to change the output of the HTML-tags generated from the templatetags,
this can be done by overriding the templates ``pipeline/css.html`` and ``pipeline/js.html``. this can be done by overriding the templates ``pipeline/css.html`` and ``pipeline/js.html``.
......
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