2008-07-19 07:54:34 +08:00
|
|
|
from django.contrib.admindocs import views
|
2016-10-21 01:29:04 +08:00
|
|
|
from django.urls import path, re_path
|
2008-07-19 07:54:34 +08:00
|
|
|
|
2014-04-02 08:46:34 +08:00
|
|
|
urlpatterns = [
|
2016-10-21 01:29:04 +08:00
|
|
|
path(
|
|
|
|
'',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-docroot',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'bookmarklets/',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.BookmarkletsView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-bookmarklets',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'tags/',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.TemplateTagIndexView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-tags',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'filters/',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.TemplateFilterIndexView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-filters',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'views/',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.ViewIndexView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-views-index',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'views/<view>/',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.ViewDetailView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-views-detail',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'models/',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.ModelIndexView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-models-index',
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r'^models/(?P<app_label>[^\.]+)\.(?P<model_name>[^/]+)/$',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.ModelDetailView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-models-detail',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'templates/<path:template>/',
|
2013-11-21 15:48:29 +08:00
|
|
|
views.TemplateDetailView.as_view(),
|
2016-10-21 01:29:04 +08:00
|
|
|
name='django-admindocs-templates',
|
|
|
|
),
|
2014-04-02 08:46:34 +08:00
|
|
|
]
|