Guest User

Untitled

a guest
Oct 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. from django.shortcuts import render_to_response
  2. from django.template import RequestContext
  3.  
  4. def some_view(request):
  5.  
  6. # Request remote page and parse it
  7.  
  8. foo = 'Some template variable'
  9. template_name = 'path/to/template.html'
  10. return render_to_response(template_name, {
  11. 'foo': foo,
  12. }, context_instance=RequestContext(request))
Add Comment
Please, Sign In to add comment