mirror of
https://github.com/django/django.git
synced 2025-10-22 21:29:11 +00:00
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
51 lines
1.3 KiB
Python
51 lines
1.3 KiB
Python
from django.contrib.admindocs import views
|
|
from django.urls import path, re_path
|
|
|
|
urlpatterns = [
|
|
path(
|
|
'',
|
|
views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'),
|
|
name='django-admindocs-docroot',
|
|
),
|
|
path(
|
|
'bookmarklets/',
|
|
views.BookmarkletsView.as_view(),
|
|
name='django-admindocs-bookmarklets',
|
|
),
|
|
path(
|
|
'tags/',
|
|
views.TemplateTagIndexView.as_view(),
|
|
name='django-admindocs-tags',
|
|
),
|
|
path(
|
|
'filters/',
|
|
views.TemplateFilterIndexView.as_view(),
|
|
name='django-admindocs-filters',
|
|
),
|
|
path(
|
|
'views/',
|
|
views.ViewIndexView.as_view(),
|
|
name='django-admindocs-views-index',
|
|
),
|
|
path(
|
|
'views/<view>/',
|
|
views.ViewDetailView.as_view(),
|
|
name='django-admindocs-views-detail',
|
|
),
|
|
path(
|
|
'models/',
|
|
views.ModelIndexView.as_view(),
|
|
name='django-admindocs-models-index',
|
|
),
|
|
re_path(
|
|
r'^models/(?P<app_label>[^\.]+)\.(?P<model_name>[^/]+)/$',
|
|
views.ModelDetailView.as_view(),
|
|
name='django-admindocs-models-detail',
|
|
),
|
|
path(
|
|
'templates/<path:template>/',
|
|
views.TemplateDetailView.as_view(),
|
|
name='django-admindocs-templates',
|
|
),
|
|
]
|