app/django/templatetags/__init__.py
author Sverre Rabbelier <srabbelier@gmail.com>
Fri, 06 Mar 2009 22:32:26 +0000
changeset 1700 599a5ff8f422
parent 54 03e267d67478
permissions -rw-r--r--
Clean document references This has the advantage that we can inform the user if a document could not be found. Patch by: Sverre Rabbelier

from django.conf import settings

for a in settings.INSTALLED_APPS:
    try:
        __path__.extend(__import__(a + '.templatetags', {}, {}, ['']).__path__)
    except ImportError:
        pass