#1415: magic-removal .. user object not working correctly
-----------------------------+----------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  adrian  
     Type:  defect           |       Status:  reopened
 Priority:  normal           |    Milestone:          
Component:  Core framework   |      Version:          
 Severity:  normal           |   Resolution:          
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by verbosus):

 I used to have the same problem, until I read
 
[http://code.djangoproject.com/wiki/RemovingTheMagic#request.userisnowsetviamiddleware
 this]: It used to be set in the mod_python and wsgi handlers. You will
 need to add "django.contrib.auth.middleware.AuthenticationMiddleware"
 somewhere after "django.contrib.sessions.middleware.SessionMiddleware" in
 MIDDLEWARE_CLASSES in your settings.py file. Otherwise accessing
 request.user will raise an AttributeError.
 
 Could this be it?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/1415>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to