Opened 5 years ago
Closed 5 years ago
#32150 closed Bug (invalid)
Admin Docs No reverse match error
| Reported by: | Yovel Cohen | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admindocs | Version: | 3.0 |
| Severity: | Normal | Keywords: | Admin admin-docs docs, reverse-url |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I'm trying to install the Admin Docs:
my urls:
urlpatterns = [
# ADMIN
path('admin/', consumer_admin.urls),
path('admin/doc/', include('django.contrib.admindocs.urls')),
# rest of urls...
]
installed apps:
installed_apps = [
'django.contrib.admindocs',
'django.contrib.admin',
# rest of apps
]
when I try to access the docs from the admin I get the following error:
NoReverseMatch at /admin/doc/
Reverse for 'app_list' with keyword arguments '{'app_label': 'auth'}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>consumer_api|users|authtoken)/$']
all the model's admins in my app (including users and auth token) reside in my custom consumer admin,
not sure if it is related to the issue or not
Change History (3)
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 5 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 5 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The admin URLs are matching first, then looking for a
docsmodel (which doesn't exist).Swap the order round:
urlpatterns = [ path('admin/doc/', include('django.contrib.admindocs.urls')), path('admin/', consumer_admin.urls), ]Please don't use the issue tracker as a support channel. See TicketClosingReasons/UseSupportChannels.
Thanks.