You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. from django.contrib.admindocs import views
  2. from django.urls import path, re_path
  3. urlpatterns = [
  4. path(
  5. '',
  6. views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'),
  7. name='django-admindocs-docroot',
  8. ),
  9. path(
  10. 'bookmarklets/',
  11. views.BookmarkletsView.as_view(),
  12. name='django-admindocs-bookmarklets',
  13. ),
  14. path(
  15. 'tags/',
  16. views.TemplateTagIndexView.as_view(),
  17. name='django-admindocs-tags',
  18. ),
  19. path(
  20. 'filters/',
  21. views.TemplateFilterIndexView.as_view(),
  22. name='django-admindocs-filters',
  23. ),
  24. path(
  25. 'views/',
  26. views.ViewIndexView.as_view(),
  27. name='django-admindocs-views-index',
  28. ),
  29. path(
  30. 'views/<view>/',
  31. views.ViewDetailView.as_view(),
  32. name='django-admindocs-views-detail',
  33. ),
  34. path(
  35. 'models/',
  36. views.ModelIndexView.as_view(),
  37. name='django-admindocs-models-index',
  38. ),
  39. re_path(
  40. r'^models/(?P<app_label>[^\.]+)\.(?P<model_name>[^/]+)/$',
  41. views.ModelDetailView.as_view(),
  42. name='django-admindocs-models-detail',
  43. ),
  44. path(
  45. 'templates/<path:template>/',
  46. views.TemplateDetailView.as_view(),
  47. name='django-admindocs-templates',
  48. ),
  49. ]