1.
MVC The concept of MVC: Division of labor. Let special people do special things.
The core idea of MVC: Decoupling.
M: Model, model, interact with the database.
V: View, view, generate html page.
C: Controller, the controller, receives the request, processes it, interacts with M and V, and returns a response.
2. MVT
Django is a software designed by the developers of Lawrence Publishing Group for the development of news content websites. It follows the MVC idea, but has its own term called MVT.
Django follows the principles of rapid development and DRY. Do not repeat yourself. Do not repeat yourself.
M: Model, model, which has the same function as M in MVC, and interacts with the database.
V: View, view, the same function as C in MVC, receiving requests, processing, interacting with M and T, and returning responses.
T: Template, which has the same function as V in MVC and generates html pages.