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 some_view(request):
- # Request remote page and parse it
- foo = 'Some template variable'
- template_name = 'path/to/template.html'
- return render_to_response(template_name, {
- 'foo': foo,
- }, context_instance=RequestContext(request))
Add Comment
Please, Sign In to add comment