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 <rajeeshrn...@gmail.com> 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 index page and the AdminSite. After that those > apps are not visible. The only change I made in the custom AdminSite > is to add two key-value pairs into the context dictionary defined at > the end of index() method as follows: > > context = { > #other key-value pairs are there.. > ##################### > 'report_form':ReportForm(), > 'url_base':url_base, > ##################### > } > context.update(extra_context or {}) > return render_to_response(self.index_template or 'admin/ > index.html',context,context_instance=template.RequestContext(request)) > > What is wrong with the code? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---