Opened 6 years ago

Closed 6 years ago

#10067 closed (invalid)

Modules for custom filters should be configurable

Reported by: Ruediger Ranft <_rdi_@…> Owned by: nobody
Component: Template system Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When a filter module gets loaded by {% load foobar %}, django searches only in django/templatetags for the given module. Tha attached patch adds a configuration variable for modules where also to search for the filter module.

The attached patch can be applied with patch -p0

Attachments (1)

tagload.diff (1.5 KB) - added by Ruediger Ranft <_rdi_@…> 6 years ago.
Patch to add a module search path

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by Ruediger Ranft <_rdi_@…>

Patch to add a module search path

comment:1 Changed 6 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

This seems to be based on a misunderstanding. The error message reported when there's a problem is a little misleading and we're intending to fix that (that's the subject of #6587). However, Django does not look in the directory you've indicated. It looks in the templatetags/ in each application registered via the INSTALLED_APPS setting. That's enough flexibility for our purposes (since you could create an application that only contains custom template tags, for example).

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