Django Design Pattern
Let’s learn about the MTV architecture, which is used in Django.
We'll cover the following
Model Template View architecture
In a traditional data-driven website, a web application waits for HTTP requests from the web browser (or another client). When a request is received, the application works out what is needed based on the URL and any possible information from a POST
request or GET
request. Depending on what is required, the application may then read or write information from a database, or perform other tasks required to satisfy the request. The application will then return a response to the web browser. The application often dynamically creates an HTML page for the browser to display by inserting the retrieved data into placeholders in an HTML template.
Django web applications typically group the code that handles each of these steps into separate files.
Get hands-on with 1400+ tech skills courses.