I need the request object in all admin templates. In frontend templates, I can achieve this by rendering the template with RequestContext
:
return render_to_response('my_template.html',
my_data_dictionary,
context_instance=RequestContext(request)
)
With that, I can access the request object in frontend:
{{ request.path }}
How can I do this for all admin views in Django 1.2?