Opened 15 months ago

Closed 5 months ago

#28566 closed Cleanup/optimization (fixed)

Allow full filepath ignore pattern matching on collectstatic command

Reported by: Daniel Wiesmann Owned by: Daniel Wiesmann
Component: contrib.staticfiles Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

The collecstatic ignore patterns currently try pattern matching on the basename and on the path separately. There are cases where excluding js files from a specific folder is desireable. For instance, when vendor js source files are not desired, but other static files are (such as css or images from the library).

Full file path matching would allow to define more detailed control in these cases.

Change History (3)

comment:1 Changed 15 months ago by Tim Graham

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 Changed 14 months ago by Claude Paroz

Patch needs improvement: set

comment:3 Changed 5 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 8f75d21a:

Fixed #28566 -- Added path matching to collectstatic ignore patterns.

Note: See TracTickets for help on using tickets.
Back to Top