#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701877fc28263-20b4786f-0d1e-485e-ab8d-de8f9dda9cb1-000000%40eu-central-1.amazonses.com.

Reply via email to