Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-04-06 15:00:42 +02:00
parent 9a2abcbc3c
commit 6f4ce867e6
3 changed files with 14 additions and 1 deletions

View File

@@ -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