On 03/01/06 17:26, timster wrote: > I've been using Django mostly just playing around and trying to get the > hang of things before I try anything serious. I'm using Apache and > FCGI, along with the magic-removal branch. > > Last night or the night before, I ran 'svn update' to get the latest > version. Now when I try to access the built-in admin site, I get the > following error: > > AttributeError at /admin/ > 'WSGIRequest' object has no attribute '_user_source' > > /home/timster/django_src/django/core/handlers/wsgi.py in _get_user > 124. self._user = self._user_source.get_user(self) > > To the best of my knowledge, the admin site worked perfectly before > updating. > > I see there's a ticket for this, but it's closed, and I don't quite > understand the solution. > > http://code.djangoproject.com/ticket/1415 > > Any help is greatly appreciated. >
You have to add the new RequestUserMiddleware to your settings.MIDDLEWARE_CLASSES. e.g. MIDDLEWARE_CLASSES = ( "django.middleware.common.CommonMiddleware", "django.contrib.auth.middleware.RequestUserMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.doc.XViewMiddleware", ) I'm not sure if the order matters, but the above works for me. cheers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---