﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35822	App name hard-coded in collectstatic command forces name of overriding app name to be 'staticfiles'	fishfin		"In `django.contrib.staticfiles.management.commands.collectstatic`, `Command.set_options()`, there is:
{{{#!python
    ignore_patterns += apps.get_app_config(""staticfiles"").ignore_patterns
}}}
This looks for config `class StaticFilesConfig` in the app trying to overwrite `ignore_patterns`. Because Django forces the class name to match config name (in this case `StaticFiles`, the name of the app is forced to be `staticfiles`, it cannot be anything else. Either the hard-coding in collectstatic command set_options() should be changed, or document at https://docs.djangoproject.com/en/5.1/ref/contrib/staticfiles/#customizing-the-ignored-pattern-list should be changed for the example which shows the Config can be named `MyStaticFilesConfig`, which is clearly cannot be.

I have just started on Django (3-4 months) and I have looked at number of places, this info is missing, hence raising this ticket."	Bug	new	contrib.staticfiles	5.1	Normal		collectstatic	fishfin	Unreviewed	0	0	0	0	0	0
