#35822: App name hard-coded in collectstatic command forces name of overriding
app
name to be 'staticfiles'
-------------------------------------+-------------------------------------
Reporter: fishfin | Owner: (none)
Type: Bug | Status: closed
Component: contrib.staticfiles | Version: 5.1
Severity: Normal | Resolution:
| worksforme
Keywords: collectstatic | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* resolution: => worksforme
* status: new => closed
Comment:
I followed the documented example and it works as expected
These were my steps:
- create a new Django project
- set `STATIC_ROOT = "static"`
- create a new app `python manage.py startapp app1`
Then followed the instructions
- copy paste the overriden AppConfig with something in `ignore_patterns`
- replace `'django.contrib.staticfiles'` with that class path
(`'app1.apps.MyStaticFilesConfig'`) in `INSTALLED_APPS` setting
Command uses new custom setting
Also in the shell
{{{
>>> from django.apps import apps
>>> apps.get_app_config("staticfiles").ignore_patterns
['test']
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35822#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701926fd9787c-6f02843e-623f-4797-b00b-97fafafb33b1-000000%40eu-central-1.amazonses.com.