Hank Gay
Hank Gay

Reputation: 71969

Diagrams/Explanations of Django request processing?

Is there a detailed diagram that describes how Django processes requests, from when the request is first handed to it until it hands back a response, specifically including how database connections are related to requests, e.g., 1 to 1, 1 to N, etc.?

If not, I'd appreciate a pointer to the point in the code where Django starts processing the request.

Thanks.

Upvotes: 8

Views: 2863

Answers (3)

jathanism
jathanism

Reputation: 33716

There is this diagram from The Django Book (online version): alt text

A breakdown of this process is described in Chapter 3 under the heading How Django Processes a Request: Complete Details.

Upvotes: 11

Snehal Parmar
Snehal Parmar

Reputation: 5833

Most of links are not working mentioned in above answers, I got one following link which is also an great reading to understand the request processing by django:

http://www.b-list.org/weblog/2006/jun/13/how-django-processes-request/

Upvotes: 0

John Debs
John Debs

Reputation: 3784

I think this article includes the information you're looking for with a decent (if cluttered) diagram: http://uswaretech.com/blog/2009/06/django-request-response-processing/

You can also use the django-debug-toolbar to get more info about the SQL (and lots of other stuff) happening on behind the scenes of a particular request.

Upvotes: 6

Related Questions