mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #21386 -- Removed admindocs dependence on sites framework
* Removed ADMIN_FOR setting and warn warning * Group view functions by namespace instead of site * Added a test verifying namespaces are listed Thanks to Claude Paroz for reviewing and ideas for improvement.
This commit is contained in:
parent
f1b3ab9c21
commit
a39d672ec7
8 changed files with 99 additions and 82 deletions
|
@ -2097,25 +2097,6 @@ The default value for the X-Frame-Options header used by
|
|||
:doc:`clickjacking protection </ref/clickjacking/>` documentation.
|
||||
|
||||
|
||||
Admindocs
|
||||
=========
|
||||
|
||||
Settings for :mod:`django.contrib.admindocs`.
|
||||
|
||||
.. setting:: ADMIN_FOR
|
||||
|
||||
ADMIN_FOR
|
||||
---------
|
||||
|
||||
Default: ``()`` (Empty tuple)
|
||||
|
||||
Used for admin-site settings modules, this should be a tuple of settings
|
||||
modules (in the format ``'foo.bar.baz'``) for which this site is an admin.
|
||||
|
||||
The admin site uses this in its automatically-introspected documentation of
|
||||
models, views and template tags.
|
||||
|
||||
|
||||
Auth
|
||||
====
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue