[Django] #32150: Admin Docs No reverse match error

47 views
Skip to first unread message

Django

unread,
Oct 27, 2020, 9:45:52 AM10/27/20
to django-...@googlegroups.com
#32150: Admin Docs No reverse match error
-------------------------------------+-------------------------------------
Reporter: Yovel | Owner: nobody
Cohen |
Type: Bug | Status: new
Component: | Version: 3.0
contrib.admindocs | Keywords: Admin admin-docs
Severity: Normal | docs ,reverse-url
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I'm trying to install the Admin Docs:
my urls:
```python

urlpatterns = [
# ADMIN
path('admin/', consumer_admin.urls),
path('admin/doc/', include('django.contrib.admindocs.urls')),
# rest of urls...
]
```
installed apps:
```python
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:
```python
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

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

Django

unread,
Oct 27, 2020, 9:46:27 AM10/27/20
to django-...@googlegroups.com
#32150: Admin Docs No reverse match error
-------------------------------------+-------------------------------------
Reporter: Yovel Cohen | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 3.0
Severity: Normal | Resolution:
Keywords: Admin admin-docs | Triage Stage:
docs ,reverse-url | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Yovel Cohen:

Old description:

> I'm trying to install the Admin Docs:
> my urls:
> ```python
>
> urlpatterns = [
> # ADMIN
> path('admin/', consumer_admin.urls),
> path('admin/doc/', include('django.contrib.admindocs.urls')),
> # rest of urls...
> ]
> ```
> installed apps:
> ```python
> 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:
> ```python
> 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

New description:

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

--

--
Ticket URL: <https://code.djangoproject.com/ticket/32150#comment:1>

Django

unread,
Oct 27, 2020, 9:56:17 AM10/27/20
to django-...@googlegroups.com
#32150: Admin Docs No reverse match error
-------------------------------------+-------------------------------------
Reporter: Yovel Cohen | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admindocs | Version: 3.0
Severity: Normal | Resolution: invalid

Keywords: Admin admin-docs | Triage Stage:
docs ,reverse-url | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

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


Comment:

The admin URLs are matching first, then looking for a `docs` model (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.

--
Ticket URL: <https://code.djangoproject.com/ticket/32150#comment:3>

Reply all
Reply to author
Forward
0 new messages