render used for what the name is already indicated: to create a template file (mostly html, but can be of any format). render is basically a simple wrapper around HttpResponse that displays a template, although as said in a previous answer, you can use HttpResponse to return other things in the response, and not just to create templates.
Torsten engelbrecht
source share