[Fixed]-Request.user.is_authenticated returning false even though logged in

1👍

You are not using a RequestContext to render the template, so context processors are not run and user is not added to the context.

You can see from the example of the log_in view that you should be using render(request, ...) rather than render_to_response(...); that render shortcut creates a RequestContext for you.

Leave a comment