TrueQC interview question

Explain how Django request work?(HTTP request)

Interview Answer

Anonymous

Aug 1, 2021

Django uses request and response objects to pass state through the system. When a page is requested, Django creates an HttpRequest object that contains metadata about the request. Then Django loads the appropriate view, passing the HttpRequest as the first argument to the view function.