Django Objects: HttpRequest

By: Dusty Arlia
Published on Wednesday, April 23, 2014, 06:24 PM
Last Updated on Tuesday, July 07, 2015 at 10:17 PM
Total Updates: 2

The Django HttpRequest object is an instance of the HttpRequest Python class. When a webpage is requested from your web server, Django creates an HttpRequest object that contains metadata about the HTTP request. Then Django calls the appropriate view, passing the HttpRequest as the first argument to the view function. Each view is responsible for returning an HttpResponse object. These HttpRequest objects and HttpResponse objects pass state through the system.

Comments:

Ad:

Ad: