|
Revision 10088, 227 bytes
(checked in by jacob, 4 months ago)
|
Fixed #8193: all dynamic imports in Django are now done correctly. I know this because Brett Cannon borrowed the time machine and brought Python 2.7's 'importlib back for inclusion in Django. Thanks for the patch-from-the-future, Brett!
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
LastChangedRevision
|
| Line | |
|---|
| 1 |
from django.conf import settings |
|---|
| 2 |
from django.utils import importlib |
|---|
| 3 |
|
|---|
| 4 |
for a in settings.INSTALLED_APPS: |
|---|
| 5 |
try: |
|---|
| 6 |
__path__.extend(importlib.import_module('.templatetags', a).__path__) |
|---|
| 7 |
except ImportError: |
|---|
| 8 |
pass |
|---|