Opened 22 months ago
Closed 22 months ago
#34289 closed Cleanup/optimization (wontfix)
Settings to override the default admin site
Reported by: | Al Mahdi | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 4.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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'
Note:
See TracTickets
for help on using tickets.
Customisation via
AppConfig
is the preferred approach.