I was looking over some code and came to this question -- Django: What is the difference b/w HttpResponse vs HttpResponseRedirect vs render_to_response -- which discusses the di
render
is used to for what the name already indicate: to render a template file (mostly html, but could be any format). render
is basically a simple wrapper around a HttpResponse
which renders a template, though as said in the previous answer you can use HttpResponse
to return others things as well in the response, not just rendering templates.