Ticket #6579: double_init.patch
File double_init.patch, 595 bytes (added by , 17 years ago) |
---|
-
templatetags/__init__.py
2 2 3 3 for a in settings.INSTALLED_APPS: 4 4 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__) 6 12 except ImportError: 7 13 pass