Fixed #26946 -- Clarified instructions for customizing collectstatic's ignore_patterns.
This commit is contained in:
parent
e69091b34a
commit
ec4a6b33a9
|
@ -124,6 +124,8 @@ For a full list of options, refer to the commands own help by running::
|
||||||
|
|
||||||
$ python manage.py collectstatic --help
|
$ python manage.py collectstatic --help
|
||||||
|
|
||||||
|
.. _customize-staticfiles-ignore-patterns:
|
||||||
|
|
||||||
Customizing the ignored pattern list
|
Customizing the ignored pattern list
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -132,8 +134,9 @@ Customizing the ignored pattern list
|
||||||
The default ignored pattern list, ``['CVS', '.*', '*~']``, can be customized in
|
The default ignored pattern list, ``['CVS', '.*', '*~']``, can be customized in
|
||||||
a more persistent way than providing the ``--ignore`` command option at each
|
a more persistent way than providing the ``--ignore`` command option at each
|
||||||
``collectstatic`` invocation. Provide a custom :class:`~django.apps.AppConfig`
|
``collectstatic`` invocation. Provide a custom :class:`~django.apps.AppConfig`
|
||||||
class, override the ``ignore_patterns`` attribute of this class and specify
|
class, override the ``ignore_patterns`` attribute of this class and replace
|
||||||
that class path inside your :setting:`INSTALLED_APPS` setting:
|
``'django.contrib.staticfiles'`` with that class path in your
|
||||||
|
:setting:`INSTALLED_APPS` setting:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
|
@ -222,6 +222,9 @@ Minor features
|
||||||
``{% load staticfiles %}`` or ``{% load static from staticfiles %}``) and
|
``{% load staticfiles %}`` or ``{% load static from staticfiles %}``) and
|
||||||
not worry about whether or not the ``staticfiles`` app is installed.
|
not worry about whether or not the ``staticfiles`` app is installed.
|
||||||
|
|
||||||
|
* You can :ref:`more easily customize <customize-staticfiles-ignore-patterns>`
|
||||||
|
the ``collectstatic --ignore_patterns`` option with a custom ``AppConfig``.
|
||||||
|
|
||||||
Cache
|
Cache
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue