Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
'WSGIRequest' object has no attribute 'user' #2744
404's will throw this error:
Internal Server Error: /xxx
added a commit
Feb 27, 2014
seems to be the something with APPEND_SLASH, should be the same bug like this.
the problem is with django 1.6.x:
During the response phases (process_response() and process_exception() middleware), the classes are applied in reverse order, from the bottom up
So it has to do with APPEND_SLASH being applied with via a redirect by Django Common Middleware, preventing the process_request() in AuthenticationMiddleware (which adds the user attribute) from being run but your process_response still being run.