In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "sample analysis of MVC, MVT and Django frameworks", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let me lead you to study and study the "sample analysis of MVC, MVT and Django frameworks".
1. Software framework
In fact, when writing the Flask framework, you should introduce this knowledge.
What is a software framework? Friends who have worked as developers should know it very well. In software development, each of us does not do the whole project alone, but decomposes the whole large project into some small modules, and then assigns these small modules to everyone.
It's more like the organizational structure of a company:
A software framework is made up of several software modules, each of which has its own function. The combination of each function completes the development of a software.
2.MVC framework
MVC is a framework designed by the Palo Alto Research Center of Xerox for smalltalk (the second object-oriented language in the world). Its concept is similar to the software framework we mentioned above-division of labor.
This kind of division of labor idea has the so-called front-end and back-end testing and other professional division, special people to do special things.
So what exactly does MVC mean?
Model (model) represents the core of the application (such as a list of database records).
The View (view) displays data (database records).
The Controller (controller) processes the input (writes to database records).
The above is a popular saying, so that you may see it more clearly.
MVC framework for user registration:
We can feel the running logic of the MVC framework through the small case of registered users, you can directly follow the digital steps, here is not too much text description.
3. Introduction to Django
The Django framework also follows the MVC framework. It's just a little different. In Django, this framework is called MVT.
M:Model model
V:View view
T:Template template
It can also be understood by registering a case, and the idea is the same as MVC:
I've said a lot of things before and I don't seem to mention Django, so what on earth is Django?
Django is an open source Web application framework written by Python. The frame pattern of MTV is adopted, that is, model M, view V and template T. It was originally developed to manage some of the Lawrence Publishing Group's news-based websites, known as CMS (content Management system) software. And released under the BSD license in July 2005. The framework is named after the Belgian gypsy jazz guitarist Django Reinhardt.
Official website: https://www.djangoproject.com/
Official document: https://docs.djangoproject.com/en/3.0/
The above is all the content of the article "sample Analysis of MVC, MVT and Django frameworks". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.