Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.shortcuts import render_to_response
- from django.template import RequestContext
- def render(request, *args, **kwargs):
- """
- Adds RequestContext to the render_to_response shortcut
- Usage:
- response = render(request, template_name, context)
- """
- kwargs['context_instance'] = RequestContext(request)
- return render_to_response(*args, **kwargs)
Add Comment
Please, Sign In to add comment