Django processing flow

  1. User sends request through browser

  2. The request arrives at the request middleware, which preprocesses the request or returns the response directly

  3. If the response is not returned, it will reach the urlconf route and find the corresponding view function

  4. The view function does the corresponding preprocessing or directly returns the response

  5. Methods in View can selectively access underlying data through Models

  6. After getting the corresponding data, go back to the django template system, and templates render the data to the template through filters or tags

  7. Return the response to the browser and display it to the client

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325332007&siteId=291194637