override the ignore_patterns attribute of this class and specify that
class path inside your INSTALLED_APPS setting.
If you just follow those instructions without removing 'staticfiles' from
the INSTALLED_APPS list, you'll get the error `Application labels aren't
unique, duplicates: staticfiles`.
--
Ticket URL: <https://code.djangoproject.com/ticket/26946>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26946#comment:1>
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Is this enough?
{{{#!diff
diff --git a/docs/ref/contrib/staticfiles.txt
b/docs/ref/contrib/staticfiles.txt
index 5f2e5f9..78f09b9 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -136,8 +136,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
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26946#comment:2>
Comment (by rixx):
I'd say so, thanks! (This issue was actually mentioned via #django on
freenode by jleclanche.)
--
Ticket URL: <https://code.djangoproject.com/ticket/26946#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"ec4a6b33a9af7f7c266c92b4ffb9b0a49ee5b1eb" ec4a6b33]:
{{{
#!CommitTicketReference repository=""
revision="ec4a6b33a9af7f7c266c92b4ffb9b0a49ee5b1eb"
Fixed #26946 -- Clarified instructions for customizing collectstatic's
ignore_patterns.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26946#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"13c107b149bcfed13217a8f9f238a6e19f87c9e7" 13c107b]:
{{{
#!CommitTicketReference repository=""
revision="13c107b149bcfed13217a8f9f238a6e19f87c9e7"
[1.10.x] Fixed #26946 -- Clarified instructions for customizing
collectstatic's ignore_patterns.
Backport of ec4a6b33a9af7f7c266c92b4ffb9b0a49ee5b1eb from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26946#comment:5>