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