Skip to content

Commit 6fcfc60

Browse files
committed
Try to fix unimported module handling (should fix #31)
1 parent 0584a0d commit 6fcfc60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

djangojs/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def js_info_dict():
1919
continue
2020
if settings.JS_I18N_APPS_EXCLUDE and app in settings.JS_I18N_APPS_EXCLUDE:
2121
continue
22+
if app not in sys.modules:
23+
__import__(app)
2224
module = sys.modules[app]
2325
for path in module.__path__:
2426
if isdir(join(path, 'locale')):

0 commit comments

Comments
 (0)