expoweb/troggle/alwaysUseRequestContext.py
2009-02-17 02:09:11 +01:00

8 lines
311 B
Python

# this is the snippet from http://www.djangosnippets.org/snippets/3/
from django.shortcuts import render_to_response
from django.template import RequestContext
def render_response(req, *args, **kwargs):
kwargs['context_instance'] = RequestContext(req)
return render_to_response(*args, **kwargs)