I had this error because i'm not using the auth module.
If that's you case, comment it out in your settings.py file:
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
# "django.core.context_processors.auth",
)
On Jan 5, 5:40 am, "Brian Beck" <[EMAIL PROTECTED]> wrote:
It would seem that something is happening between the authentication
middleware setting request.__class__.userand the context processor
reading it.
Couple things to try if you're in a debugging mood:
After line 11 in django/contrib/admin/middleware.py:
request.__class__.user= LazyUser()
+ print 'Middleware:', request.user
Add that line to see if it's actually being set.
Now as the first line in whatever view this is happening in, do the
same thing:
def index_view(request):
+ print 'View:', request.user
This should at least narrow down where in the code request.useris
being obliterated...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---