[The Django framework] request processing flow of the Django

Transfer: https://www.cnblogs.com/jiangchunsheng/p/8986532.html

 

Django processing flow of a request:

 

  1. The user sends a request through the browser

  2. Request request arrives intermediate member preprocessing directly back to the request or request response

  3. If no return response, will arrive urlconf route, find the corresponding view function

  4. Pre-view function accordingly return response or direct

  5. The method of View can selectively access the underlying data by Models

  6. After taking back to the corresponding data django template system, templates or tags through a filter to render the data on the template

  7. Returns the response to the browser to show to customers

Guess you like

Origin www.cnblogs.com/leokale-zz/p/12093430.html