tested
This commit is contained in:
@@ -34,6 +34,8 @@ handler403 = 'rowers.views.error403_view'
|
||||
handler404 = 'rowers.views.error404_view'
|
||||
handler500 = 'rowers.views.error500_view'
|
||||
|
||||
import django.views.i18n
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
re_path('^', include('django.contrib.auth.urls')),
|
||||
@@ -86,6 +88,16 @@ urlpatterns += [
|
||||
# re_path(r'^jsi18n/', django.views.i18n.javascript_catalog,name='jsi18n'),
|
||||
]
|
||||
|
||||
js_info_dict = {
|
||||
'packages': ('recurrence', ),
|
||||
}
|
||||
|
||||
# jsi18n can be anything you like here
|
||||
urlpatterns += [
|
||||
path('jsi18n/', django.views.i18n.JavaScriptCatalog.as_view(), name="javascript-catalog"),
|
||||
]
|
||||
# monkey patch workaround for bug in recurrence library
|
||||
django.views.i18n.javascript_catalog = None
|
||||
|
||||
if settings.DEBUG:
|
||||
import debug_toolbar
|
||||
|
||||
Reference in New Issue
Block a user