Django request flow

Django request flow:

1. Incoming requests go to /hello/.

2. Django determines the root URLconf by configuring it in ROOT_URLCONF.

3. Django looks for the first entry matching /hello/ among all URL patterns in the URLconf.

4. If a match is found, the corresponding view function will be called

5. The view function returns an HttpResponse

6. Django converts the HttpResponse into a suitable HTTP response and displays it as a Web page

Guess you like

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