Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#19121 closed Uncategorized (wontfix)

staticfiles app should have a setting variable for ignore patterns

Reported by: dmishe@… Owned by: nobody
Component: Uncategorized Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Right now it's possible to specify ignore path patters when calling collectstatic management command.
It would be helpful, if I could set those patterns in settings, say, STATICFILES_IGNORE tuple.
This tuple should contain ignore patterns the command uses by default, so I can either supplement or override them.

Change History (1)

comment:1 by Preston Holmes, 12 years ago

Resolution: wontfix
Status: newclosed

This should be handled instead by writing a thin subclass of the staticfiles finder(s) you are using, overriding the 'list' method - and hardcoding/appending the global ignore patterns that are specific/common to your project.

The global settings namespace is only added to by Django in a very conservative way - and this usage would not qualify for a global setting.

Version 0, edited 12 years ago by Preston Holmes (next)
Note: See TracTickets for help on using tickets.
Back to Top