Re: Subclassing AdminSite

2010-10-29 Thread Strav
Just solve my problem. This was hinted in the doc but wasn't really clear anyways. The registration has to be made in the same file instantiating your admin subclass. I'll submit a doc revision for that. -- You received this message because you are subscribed to the Google Groups "Django users

Re: Subclassing AdminSite

2010-10-29 Thread Strav
Forgot to say: If I replace: (r'^', include(alternate_admin.urls)), with (r'^', include('alternate_admin.urls')), I can see the models I've got registered with my alternate admin but the url reversing is messed up, i.e.: logout does not point to /logout but to /admin/logout (while /admin/logout

Subclassing AdminSite

2010-10-29 Thread Strav
Hi, I must say I'm kinda lost here. Any help would greatly be appreciated! I wish to have two seperate admin sites on the same django project. First thing I did, was create the app: alternate_admin within alternate_admin, I have admin.py where I defined the following: from django.contrib.admin.s