Re: [Django] #34494: This is suggestion about customizing AdminSite documents

2 views
Skip to first unread message

Django

unread,
Apr 14, 2023, 8:34:29 AM4/14/23
to django-...@googlegroups.com
#34494: This is suggestion about customizing AdminSite documents
-------------------------------+--------------------------------------
Reporter: jianghan | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 4.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

If you want to use a custom admin site with `admindocs` you should still
point urls from `admin.site.urls`:
{{{
from django.contrib import admin

urlpatterns = [
path('admin/doc/', include('django.contrib.admindocs.urls')),
path("admin/", admin.site.urls),
]
}}}
Django will properly resolve `admin.site` to your custom `AdminSite`.

--
Ticket URL: <https://code.djangoproject.com/ticket/34494#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages