playfire/django-debug-toolbar-user-panel — pull request #15 by paramburu (2012-12-20 20:04:54+00:00)
Title: Current User shows "Not logged in" all the time

`request.user` can be accessed from views not from templates (according to the documentation).

https://docs.djangoproject.com/en/1.4/topics/auth/#authentication-in-web-requests

From templates it's the context variable user, from:
https://docs.djangoproject.com/en/1.4/topics/auth/#id8

At least since 1.0 (in the docs) can be accessed this way.

This, according to the docs, may stay the same in 1.5 but, on the view layer may need to change a little.