1, MVC framework and MTV framework
MVC full name model view controller, software engineering, a software architecture model, the software is divided into three basic parts: the model (Model), view (view) and a controller (Controller ), having a low coupling , reusability high , low life-cycle costs , etc.
django framework adopts the idea of MVC design pattern frame is divided into three parts, to reduce the coupling between the various parts
Django differs from the frame content with its three parts is resolved: model (model), template (template), view view; django frame used for MTV
Django's mtv mode:
model (model): Responsible for business objects and database objects (ORM)
template (template): responsible for how the page displayed to the user
view (view): responsible for business logic, and call the model and template at the appropriate time
In addition, Django urls there is a distributor, which is the role of a page request url a different view of the distribution process, in view of the model and call the appropriate template
#Django frame shown: