#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'

Change History (1)

comment:1 by Carlton Gibson, 15 months ago

Resolution: wontfix
Status: newclosed

Customisation via AppConfig is the preferred approach.

Note: See TracTickets for help on using tickets.
Back to Top