app/django/templatetags/__init__.py
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 22 Jun 2009 07:32:45 +0200
changeset 2418 32cb30846cfd
parent 54 03e267d67478
permissions -rw-r--r--
Fixes an issue where the organization home page would throw a 505 when no projects where accepted. This only happens after the project announced deadline because only then would the project list be constructed.

from django.conf import settings

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