Opened 9 years ago

Closed 9 years ago

#13801 closed (invalid)

Custom filters - INSTALLED_APPS requirements

Reported by: mhenwood Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



The documentation states that in order for a library of custom tags/filters to be activated, the containing app must be in installed apps. However further to this it fails to note that the actual python package you create must also be listed in there. So for instance if I add a directory called 'templatetags' to an application, then in my installed apps I also need to add the line:

Change History (1)

comment:1 Changed 9 years ago by Karen Tracey

Resolution: invalid
Status: newclosed

I don't know how you came to this conclusion, but it is not true: you do not have to list the templatetags package as an installed app. When searching for a template tag library, Django attempts to find template tags in a templatetags package under each app listed in INSTALLED_APPS; there is no need to list these explicitly. The documentation is correct as it is.

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