Ticket #10699: 10699-template-api-example-typo.diff

File 10699-template-api-example-typo.diff, 418 bytes (added by Ramiro Morales, 10 years ago)
  • docs/ref/templates/api.txt

    diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
    a b  
    323323        c = RequestContext(request, {
    324324            'foo': 'bar',
    325325        }, [ip_address_processor])
    326         return t.render(c)
     326        return HttpResponse(t.render(c))
    327327
    328328.. note::
    329329    If you're using Django's ``render_to_response()`` shortcut to populate a
Back to Top