Ticket #16344: render_docs_example-16344.diff
File render_docs_example-16344.diff, 532 bytes (added by , 13 years ago) |
---|
-
docs/topics/http/shortcuts.txt
81 81 def my_view(request): 82 82 # View code here... 83 83 t = loader.get_template('myapp/template.html') 84 c = RequestContext(request, {'foo': 'bar'})84 c = Context(request, {'foo': 'bar'}) 85 85 return HttpResponse(t.render(c), 86 86 content_type="application/xhtml+xml") 87 87