render vs. HTTPResponse vs. HTTPResponseredirect
HTTP reponse code indicates a specific HTTP request has been successfully completed
- Informatioin responses(100-)
- Successful responses (200-)
- Redirects (300-)
- Client errors (400-)
- Server errors (400-)
200 OK
HTTPResponse()
HTTP 200
HTTPResponseredirect()
HTTP 302 (found/moved temporarily)
Render(request, template_name, context=None, content_type=None, stats-None, using=None)
required
request : object used to generate this response template_name
optional
context : a dictionary of values to add to the template context content_type : the MIME type to use fo rthe resulting doc.
MIME types: is a media type that describes the nature and format of a document, file or assortment of bytes. type/subtype
status: status code for the response using : the name of a template engine to use for loading the template