Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Allow custom admin site #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frnhr
Copy link

@frnhr frnhr commented Apr 2, 2016

Sometimes we do insane things with the admin, which require custom admin site. This PR includes a simple fix that enables developer to specify which admin site should be used instead of the default django.contrib.admin.site.

Usage:

in settings.py:

ADMIN_REORDER_SITE = 'myapp.custom_admin.site'

That's it. Of course, if setting is missing, the default site will be used.


Idea for the future: enable reorder to work on multiple sites.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 0.971% when pulling c6da287 on frnhr:allow_custom_admin_site into 6de6a72 on mishbahr:master.

@mishbahr
Copy link
Owner

mishbahr commented Apr 6, 2016

Hey @frnhr, I'm on holiday at the moment .. I'll look into this as soon as I'm back.

@geoffrey-eisenbarth
Copy link

Has there been any progress on this or #20 ? I was hoping to use this with two different admin sites in a single Django project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants