Ticket #16344: render_docs_example-16344.diff

File render_docs_example-16344.diff, 532 bytes (added by teraom, 13 years ago)
  • docs/topics/http/shortcuts.txt

     
    8181    def my_view(request):
    8282        # View code here...
    8383        t = loader.get_template('myapp/template.html')
    84         c = RequestContext(request, {'foo': 'bar'})
     84        c = Context(request, {'foo': 'bar'})
    8585        return HttpResponse(t.render(c),
    8686            content_type="application/xhtml+xml")
    8787
Back to Top