How Django is Structured
Django is modeled around a Model-View-Controller (MVC) framework.
The Model, which provides the interface with the database containing the application data;
The View, which decides what information to present to the user and collects information from the user;
The Controller, which manages the business logic for the application and acts as an information broker between the model and the view.
Django uses slightly different terminology in its implementation of MVC :
Model-Template-View (MTV)
MTV
Model
Django’s models provide an Object-relational Mapping (ORM) to the underlying database.Template
A Django template is a text file designed to separate an application’s data from the way it is presented.View
Django’s views are the information brokers of a Django application. A view sources data from your database (or an external data source or service) and delivers it to a template.