Source code django/contrib/admindocs/urls.py

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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',
    ),
]