Added note about precompilers being run even if COMPRESS_ENABLED is set to False

This commit is contained in:
Jannis Leidel
2011-09-07 13:33:21 +02:00
parent 9631dcde4d
commit 770836dc83
2 changed files with 11 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ COMPRESS_OUTPUT_DIR
Controls the directory inside COMPRESS_ROOT_ that compressed files will
be written to.
.. _compress_css_filters:
COMPRESS_CSS_FILTERS
^^^^^^^^^^^^^^^^^^^^
@@ -111,6 +113,7 @@ algorithm cssmin_.
.. _`data: URIs`: http://en.wikipedia.org/wiki/Data_URI_scheme
.. _cssmin: http://pypi.python.org/pypi/cssmin/
.. _compress_js_filters:
COMPRESS_JS_FILTERS
^^^^^^^^^^^^^^^^^^^

View File

@@ -52,6 +52,14 @@ If the :ref:`COMPRESS_ENABLED <compress_enabled>` setting is ``False``
(defaults to the opposite of DEBUG) the ``compress`` template tag does nothing
and simply returns exactly what it was given.
.. note::
If you've configured any :ref:`precompilers <compress_precompilers>`
setting :ref:`COMPRESS_ENABLED <compress_enabled>` to ``False`` won't
affect the processing of those files. Only the
:ref:`CSS <compress_css_filters>` and
:ref:`JavaScript filters <compress_js_filters>` will be disabled.
If both DEBUG and :ref:`COMPRESS_ENABLED <compress_enabled>` are set to
``True``, incompressible files (off-site or non existent) will throw an
exception. If DEBUG is ``False`` these files will be silently stripped.