Dept. of Computer Science and Engineering
Course Code: CSE-304
Course Name: Object Oriented Analysis & Design
Instructor: Nosin Ibna Mahbub
Model View Controller !!
(MVC)
MVT (Model View Template)
❑MVTis slightly different fromMVC.
❑In fact the main difference between the two patterns is thatDjangoitself takes care of
the Controller part (Software Code that controls the interactions between the Model and
View), leaving us with the template. The template is a HTML file mixed withDjango
Template Language (DTL).
What is MVT (Model, View, and Template)?
❑To understand MVT, think Model as a Logical data structure. It is the middleware & data
handler between database and view. The Model provides a definition of how the data
formats as coming from the view so, it stores in the database and vice-versa, i.e., the
retrieving information from the database transfers to the view in the displayable format.
MVT (Model View Template)
MVT (Model View Template)
Difference between MVC and MVT design patterns
Traditional web application development model vsMVC vsMVT
Traditional
MVC
MVT
Client