Re: Sites and Auth apps not visible on using custom AdminSite

2008-12-29 Thread Alex Koshelev
Right here: http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/admin.py http://code.djangoproject.com/browser/django/trunk/django/contrib/sites/admin.py On Mon, Dec 29, 2008 at 8:50 PM, raj wrote: > > Yes, I've found the way out. Adding these lines to the admin module > will

Re: Sites and Auth apps not visible on using custom AdminSite

2008-12-29 Thread raj
Yes, I've found the way out. Adding these lines to the admin module will help: from django.contrib.sites.models import Site from django.contrib.sites.admin import SiteAdmin from django.contrib.auth.models import User, Group from django.contrib.auth.admin import UserAdmin, GroupAdmin ## admin_sit

Re: Sites and Auth apps not visible on using custom AdminSite

2008-12-29 Thread raj
On Dec 29, 6:35 pm, "Alex Koshelev" wrote: > How have you created custom AdminSite? Have you registered auth and site > models to it? I haven't done that. Thought that being built-in apps they would already be hooked to the parent class AdminSite. I'll try what you suggested. But where shall th

Re: Sites and Auth apps not visible on using custom AdminSite

2008-12-29 Thread raj
On Dec 29, 6:35 pm, "Alex Koshelev" wrote: > How have you created custom AdminSite? Have you registered auth and site > models to it? Well, I haven't done that. Just defined the class and hooked all my apps to that. I thought all such default apps would be taken care of by the parent class. Ok,

Re: Sites and Auth apps not visible on using custom AdminSite

2008-12-29 Thread Alex Koshelev
How have you created custom AdminSite? Have you registered auth and site models to it? On Mon, Dec 29, 2008 at 1:41 PM, raj wrote: > > In the usual admin index at http://host:port/admin/ page, there are > the auth and sites app visible on top of our custom app list. I'd to > customize the admin