Just clarify the solution description a bit.
In your settings module, set (or create) the CONTEXT_PROCESSORS variable as follows:
CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth' )
Then in your view templates, you can simply use {{user.username}} to link to your current user object.
This works because the django.contrib.auth.context_processors.auth module adds the ' user ' variable to the context dictionary. This is almost equivalent:
ReqCon = RequestContext(Request, {'user' : Request.user}) html = t.render(ReqCon) return HttpResponse(html)
See SO thread: Always include user in django template context
source share