summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-07-25 09:46:32 -0400
committerTim Graham <timograham@gmail.com>2016-07-25 10:05:56 -0400
commit13c107b149bcfed13217a8f9f238a6e19f87c9e7 (patch)
tree26944e6a5f1f88101022c9e0ea370d0c616f4530 /docs
parent738a65a597f9a448b000ad89500db5caf3807363 (diff)
[1.10.x] Fixed #26946 -- Clarified instructions for customizing collectstatic's ignore_patterns.
Backport of ec4a6b33a9af7f7c266c92b4ffb9b0a49ee5b1eb from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/staticfiles.txt7
-rw-r--r--docs/releases/1.10.txt3
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 5f2e5f909b..00d3128977 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -128,6 +128,8 @@ For a full list of options, refer to the commands own help by running::
$ python manage.py collectstatic --help
+.. _customize-staticfiles-ignore-patterns:
+
Customizing the ignored pattern list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -136,8 +138,9 @@ Customizing the ignored pattern list
The default ignored pattern list, ``['CVS', '.*', '*~']``, can be customized in
a more persistent way than providing the ``--ignore`` command option at each
``collectstatic`` invocation. Provide a custom :class:`~django.apps.AppConfig`
-class, override the ``ignore_patterns`` attribute of this class and specify
-that class path inside your :setting:`INSTALLED_APPS` setting:
+class, override the ``ignore_patterns`` attribute of this class and replace
+``'django.contrib.staticfiles'`` with that class path in your
+:setting:`INSTALLED_APPS` setting:
.. code-block:: python
diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt
index 5f59dbf5c8..dd0cfe9404 100644
--- a/docs/releases/1.10.txt
+++ b/docs/releases/1.10.txt
@@ -222,6 +222,9 @@ Minor features
``{% load staticfiles %}`` or ``{% load static from staticfiles %}``) and
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
~~~~~