I don't have middleware classes. I just created some model classes and tried to create Admin application for them. Maybe I have to comment some of INSTALLED_APPS that Django uncomment them by default. Suspects are auth, contenttypes, sessions Right?
On Jan 4, 1:06 pm, Eric Abrahamsen <gir...@gmail.com> wrote: > On Jan 4, 2009, at 4:58 PM, HB wrote: > > > > > > > Hey, > > I'm trying to create Admin application for my Django project, here are > > some snippets: > > +++ > > from django.contrib import admin > > admin.autodiscover() > > > urlpatterns = patterns('', > > (r'^admin/(.*)', admin.site.root), > > ) > > > INSTALLED_APPS = ( > > 'django.contrib.auth', > > 'django.contrib.contenttypes', > > 'django.contrib.sessions', > > 'django.contrib.sites', > > 'django.contrib.admin', > > 'djdrive.books', > > ) > > +++ > > Can you also paste your middleware classes? > > I've had this happen and can't for the life of me remember where yet, > but I think it had something to do with the Session and Authentication > middleware... > > Eric > > > > > But when trying to access /admin , I got this exception: > > +++ > > AttributeError at /admin/ > > 'WSGIRequest' object has no attribute 'user' > > +++ > > > Any ideas? > > Platform: > > Django 1.0.2 > > Ubuntu 8.04 > > Thanks for help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---