Processing the Request

W
hen the Python infrastructure receives a request, it determines whih Python script is responsible for formulating a response, and dispatches to that script.

In general, if the request method was POST, the Python script will perform some action (changing something in the database, performing a search, etc.) and bounce the browser to a new URL, which it will fetch with the GET method. For GET requests, the script will usually produce a page for the browser to display.