5 | 5 | 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. |