Merge pull request #764 from ostcar/issue-463

Fixed #463, typo in urls.py
This commit is contained in:
Oskar Hahn 2013-06-21 03:15:28 -07:00
commit 56e9a1eca4

View File

@ -33,13 +33,13 @@ js_info_dict = {'packages': [],}
for plugin in settings.INSTALLED_PLUGINS: for plugin in settings.INSTALLED_PLUGINS:
try: try:
mod = import_module(plugin + '.urls') mod = import_module(plugin + '.urls')
except ImportError, err: except ImportError:
continue continue
plugin_name = mod.__name__.split('.')[0] plugin_name = mod.__name__.split('.')[0]
urlpatterns += patterns('', (r'^%s/' % plugin_name, include('%s.urls' urlpatterns += patterns('', (r'^%s/' % plugin_name, include('%s.urls'
% plugin_name))) % plugin)))
js_info_dict['packages'].append(plugin_name) js_info_dict['packages'].append(plugin)
urlpatterns += patterns('', urlpatterns += patterns('',
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),