Ticket #6579: double_init.patch

File double_init.patch, 595 bytes (added by Grzegorz Lukasik <hauserx@…>, 16 years ago)

patch based on description in http://docs.python.org/lib/built-in-funcs.html

  • templatetags/__init__.py

     
    22
    33for a in settings.INSTALLED_APPS:
    44    try:
    5         __path__.extend(__import__(a + '.templatetags', {}, {}, ['']).__path__)
     5        name = a + '.templatetags'
     6        mod = __import__(name)
     7
     8        components = name.split('.')
     9        for comp in components[1:]:
     10            mod = getattr(mod, comp)
     11        __path__.extend(mod.__path__)
    612    except ImportError:
    713        pass
Back to Top