urls.py 831 B

123456789101112131415161718192021222324252627282930313233
  1. from django.conf.urls import patterns, url
  2. from django.views.i18n import javascript_catalog
  3. from jet.views import add_bookmark_view, remove_bookmark_view, toggle_application_pin_view, model_lookup_view
  4. urlpatterns = patterns(
  5. '',
  6. url(
  7. r'^add_bookmark/$',
  8. add_bookmark_view,
  9. name='add_bookmark'
  10. ),
  11. url(
  12. r'^remove_bookmark/$',
  13. remove_bookmark_view,
  14. name='remove_bookmark'
  15. ),
  16. url(
  17. r'^toggle_application_pin/$',
  18. toggle_application_pin_view,
  19. name='toggle_application_pin'
  20. ),
  21. url(
  22. r'^model_lookup/$',
  23. model_lookup_view,
  24. name='model_lookup'
  25. ),
  26. url(
  27. r'^jsi18n/$',
  28. javascript_catalog,
  29. {'packages': ('django.conf', 'django.contrib.admin', 'jet',)},
  30. name='jsi18n'
  31. ),
  32. )