[Django] #34289: Settings to override the default admin site

2 views
Skip to first unread message

Django

unread,
Jan 24, 2023, 12:36:22 AM1/24/23
to django-...@googlegroups.com
#34289: Settings to override the default admin site
------------------------------------------------+------------------------
Reporter: Al Mahdi | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
The current way [https://docs.djangoproject.com/en/4.1/ref/contrib/admin
/#overriding-the-default-admin-site] to override the default admin site is
not so convenient.

Is it possible to set the default admin site class in the **settings.py**
file?

Like this,

{{{
DEFAULT_ADMIN_SITE = 'app.admin.CustomAdminSite'
}}}

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

Django

unread,
Jan 24, 2023, 2:36:22 AM1/24/23
to django-...@googlegroups.com
#34289: Settings to override the default admin site
-------------------------------------+-------------------------------------

Reporter: Al Mahdi | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage:
| 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: => wontfix


Comment:

Customisation via `AppConfig` is the preferred approach.

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

Reply all
Reply to author
Forward
0 new messages