1👍
In your view, when you return render_to_response, you can add context_instance = RequestContext(request).
return render_to_response("template_name", "vars_dict", context_instance = RequestContext(request))
This will make the variable request accessible from the template
Source:stackexchange.com