Ticket #10120: render.patch

File render.patch, 500 bytes (added by Andrews Medina, 16 years ago)
  • docs/topics/http/shortcuts.txt

     
    7070        # View code here...
    7171        t = loader.get_template('myapp/template.html')
    7272        c = Context({'foo': 'bar'})
    73         r = HttpResponse(t.render(c),
     73        return HttpResponse(t.render(c),
    7474            mimetype="application/xhtml+xml")
    7575
    7676``get_object_or_404``
Back to Top