1. yang xiaoyong
  2. djtpl


How Django handles request

  1. A URL is requested
  2. The middleware is called (Request preprocssor)
  3. URL matched against of patterns
  4. middleware called again (View preprocssor)
  5. View is called
  6. Template is loaded and renderd

7. Middleware is called (Response preprocessor) 8 HTTP response is returned