Django Model -MVT

This is the modification of MVC architecture although Django core architecture is based on MVC but in MVT implementing some variation of MVC architecture.

MVT Architecture components

MVT architecture divided into three components

Model

Model contains logical file structure of projects. It contains all class related to modes and it the middleware of View and Templates. It provides a definition of how data information as coming from the View.

View

The View in MTV architecture can look like the controller, but it’s not. The View in this MTV architecture is formatting the data via the model. In turn, it communicates to the database and that data which transfer to the template for viewing.

Templates

Templates is the life of developer to developer front end of the any web applications it contains the all information related to static files like media, css, javascript and HTML files.

In next page we will learn full description of Model, View and Templates with project coding.

Powered  by Codersarts