OpenSource For You

The flow of an HTTP request

-

To explain the flow of an HTTP request through a Django Web applicatio­n, let us look at my personal website, http:// akshaydeo.me. As Figure 2 shows, the HTTP request is sent to the Web applicatio­n’s urls.py, where URL-regular expression­s are sequential­ly applied to it; the first match is accepted, and the request is forwarded to the correspond­ing view. In views. py, that particular function performs the required processing, which might include communicat­ion with models in the database; then, the HTML template is rendered, and the

Newspapers in English

Newspapers from India