#12772: Allow loading template tags by fully qualified python module path -----------------------------+---------------------------------------------- Reporter: patrys | Owner: nobody Status: new | Milestone: Component: Template system | Version: 1.2-beta Keywords: | Stage: Unreviewed Has_patch: 1 | -----------------------------+---------------------------------------------- Currently templatetags are magically searched for in the list of installed apps. This leads to all kind of problems when debugging code, starting from being forced to use find to locate tag libraries and ending with global namespace collisions.
The attached patch adds the possibility to import tags by fully qualified module path by first trying to make an absolute import and only then falling back to searching inside installed apps. This also allows people to import tag libraries that are not parts of any application (so common tags can be kept together without the need of adding a fake app). Also: "Explicit is better than implicit." :) -- Ticket URL: <http://code.djangoproject.com/ticket/12772> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
