Yes. I already have done that: from django.conf.urls.defaults import * from django.contrib import admin
import os admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^seinhe/', include('seinhe.foo.urls')), # Uncomment this for admin: ('^admin/(.*)', admin.site.root), 2008/7/21 cschand <[EMAIL PROTECTED]>: > > Did you add > admin.autodiscover() > in urls.py? I think the problem due to this > read > http://www.djangoproject.com/documentation/admin/#hooking-adminsite-instances-into-your-urlconf > > Satheesh > > Florencio Cano wrote: >> The problem is that in the last versions in the repository of Django >> the Admin interface has changed. More info in: >> http://www.djangoproject.com/documentation/admin/ >> I have read the documentation but now I have another error. Now the >> error is with the template index of the admin interface: >> >> TemplateSyntaxError at /admin/ >> Caught an exception while rendering: u'user' Original Traceback (most >> recent call last): File >> "/usr/lib/python2.4/site-packages/django/template/debug.py", line 71, >> in render_node result = node.render(context) File >> "/usr/lib/python2.4/site-packages/django/contrib/admin/templatetags/log.py", >> line 18, in render self.user = context[self.user].id File >> "/usr/lib/python2.4/site-packages/django/template/context.py", line >> 43, in __getitem__ raise KeyError(key) KeyError: u'user' >> >> After reading the document the most importante change I see is >> extracting the Admin class from the models and creating another class >> called MyModelAdmin that extends admin.ModelAdmin and modifying the >> urls.py to include: >> >> urlpatterns = patterns('', >> ('^admin/(.*)', admin.site.root), >> [...] >> >> Any ideas to solve this problem in the new Admin interface version? >> >> 2008/7/21 Florencio Cano <[EMAIL PROTECTED]>: >> > Hi! >> > I have updated Django from svn, installed a new app and some new >> > models and now when I try to browse /admin/ I get this error: >> > >> > ViewDoesNotExist: Tried index in module >> > django.contrib.admin.views.main. Error was: 'module' object has no >> > attribute 'index' >> > >> > I have checked that my user is the owner of all the files in >> > django.contrib.admin.views and I have checked that there not exist any >> > method in django.contrib.admin.views.main called index. >> > >> > What is this attribute used for and how I can fix this error? >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---