I would like to create a custom AdminSite instance, using a custom subclass 
of my own, and provide some project-level urls for the AdminSite. However, 
I would like to still benefit from the autodiscover feature.

Is there a way I can instance a custom AdminSite subclass, and have that 
instance reachable as `admin.site` import path? This means, the following 
line:

from django.contrib.admin import site

returning my custom AdminSite instance, if I want to override it. In this 
way, installed apps register their model admins against my custom AdminSite 
instance. For this to work, I want this to be executed *before* the 
autodiscover process is run in the app registry.

How can I do it?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ed667d1c-ffba-4804-a8d7-4bea6c830708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to