1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- from django.conf.urls import patterns, url
- from django.views.i18n import javascript_catalog
- from jet.views import add_bookmark_view, remove_bookmark_view, toggle_application_pin_view, \
- update_dashboard_modules_view, add_user_dashboard_module_view, update_dashboard_module_collapse_view, \
- remove_dashboard_module_view, UpdateDashboardModuleView, load_dashboard_module_view, model_lookup_view
- urlpatterns = patterns(
- '',
- url(
- r'^module/(?P<pk>\d+)/$',
- UpdateDashboardModuleView.as_view(),
- name='update_module'
- ),
- url(
- r'^add_bookmark/$',
- add_bookmark_view,
- name='add_bookmark'
- ),
- url(
- r'^remove_bookmark/$',
- remove_bookmark_view,
- name='remove_bookmark'
- ),
- url(
- r'^toggle_application_pin/$',
- toggle_application_pin_view,
- name='toggle_application_pin'
- ),
- url(
- r'^update_dashboard_modules/$',
- update_dashboard_modules_view,
- name='update_dashboard_modules'
- ),
- url(
- r'^add_user_dashboard_module/$',
- add_user_dashboard_module_view,
- name='add_user_dashboard_module'
- ),
- url(
- r'^update_dashboard_module_collapse/$',
- update_dashboard_module_collapse_view,
- name='update_dashboard_module_collapse'
- ),
- url(
- r'^remove_dashboard_module/$',
- remove_dashboard_module_view,
- name='remove_dashboard_module'
- ),
- url(
- r'^load_dashboard_module/(?P<pk>\d+)/$',
- load_dashboard_module_view,
- name='load_dashboard_module'
- ),
- url(
- r'^model_lookup/$',
- model_lookup_view,
- name='model_lookup'
- ),
- url(
- r'^jsi18n/$',
- javascript_catalog,
- {'packages': ('jet',)},
- name='jsi18n'
- ),
- )
|