Opened 4 years ago
Closed 4 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 , 4 years ago
Description: | modified (diff) |
---|
comment:2 by , 4 years ago
Description: | modified (diff) |
---|
comment:3 by , 4 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
docs
model (which doesn't exist).Swap the order round:
Please don't use the issue tracker as a support channel. See TicketClosingReasons/UseSupportChannels.
Thanks.