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.
 
 
 
 

33 lines
1.2 KiB

  1. from django.conf.urls import url
  2. from django.contrib.admindocs import views
  3. urlpatterns = [
  4. url('^$',
  5. views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'),
  6. name='django-admindocs-docroot'),
  7. url('^bookmarklets/$',
  8. views.BookmarkletsView.as_view(),
  9. name='django-admindocs-bookmarklets'),
  10. url('^tags/$',
  11. views.TemplateTagIndexView.as_view(),
  12. name='django-admindocs-tags'),
  13. url('^filters/$',
  14. views.TemplateFilterIndexView.as_view(),
  15. name='django-admindocs-filters'),
  16. url('^views/$',
  17. views.ViewIndexView.as_view(),
  18. name='django-admindocs-views-index'),
  19. url('^views/(?P<view>[^/]+)/$',
  20. views.ViewDetailView.as_view(),
  21. name='django-admindocs-views-detail'),
  22. url('^models/$',
  23. views.ModelIndexView.as_view(),
  24. name='django-admindocs-models-index'),
  25. url('^models/(?P<app_label>[^\.]+)\.(?P<model_name>[^/]+)/$',
  26. views.ModelDetailView.as_view(),
  27. name='django-admindocs-models-detail'),
  28. url('^templates/(?P<template>.*)/$',
  29. views.TemplateDetailView.as_view(),
  30. name='django-admindocs-templates'),
  31. ]