Hi all,

I read the middelware documentation on 
http://www.djangoproject.com/documentation/middleware/ and try to get a big 
picture of understanding.

I also looked into the django/core/handler/base code.

1. incoming request is processed by each Middleware.process_request until a 
middleware returns a response (jump to 5. if response).

2. request/view is now processed by Middleware.process_view until a middleware 
returns a response (jump to 5. if response).

3. the view is called and returns a response (jump to 5.) or throw an exception 
(jump to 4.).

4. an exception is precossed by each Middelware.process_exception until a 
middleware returns a reponse (jump to 5) or reraise the exception.

5. the response from 1./2./3./4. is now processed by each 
Middelware.process_response with response-input of the previos iteration.

6. outgoing response will be served.

Are those steps correct ?

Regards,
Dirk
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to