Collectstatic ignore list expansion on a per project basis
|Reported by:||mark0978||Owned by:||nobody|
|Cc:||tomas.ehrlich@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently collectstatic gets its default ignores from this code.
ignore_patterns = options['ignore_patterns'] if options['use_default_ignore_patterns']: ignore_patterns += ['CVS', '.*', '*~']
In some of my projects I need more than this, and the only way to get that behavior is to remember the command line options and patterns. Working on many different projects all the time, this is problematic for me.
I'd like to propose a settings file addition that would pull those ignore patterns from settings.COLLECT_STATIC_IGNORE or something similar.
I'd be willing to write the code if this is accepted. We could leave the default alone, but allow people to put various things in the list to make deployment less of a hassle.
Change History (11)
comment:1 Changed 3 years ago by tomask
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 3 years ago by Elvard
comment:3 Changed 3 years ago by Elvard
- Cc tomas.ehrlich@… added
- Has patch set
- Version changed from 1.5 to master
comment:7 Changed 2 years ago by jezdez
- Patch needs improvement set