Changes between Initial Version and Version 1 of Ticket #35822


Ignore:
Timestamp:
Oct 9, 2024, 12:33:07 AM (6 days ago)
Author:
Sarah Boyce
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35822 – Description

    initial v1  
    11In `django.contrib.staticfiles.management.commands.collectstatic`, `Command.set_options()`, there is:
    2 ```python
     2{{{#!python
    33    ignore_patterns += apps.get_app_config("staticfiles").ignore_patterns
    4 ```
     4}}}
    55This 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.
    66
Back to Top