MVC and MVT

Source: Internet
Author: User

I. MVC frame composition

By understanding:
    1. Model: An object (ORM) that is responsible for business objects and databases
    2. Controller: Responsible for handling business logic
    3. View: The interface that is responsible for interacting with the user

Two. MVT Frame composition

By understanding:

    1. Model: Object that is responsible for business objects and databases (ORM)
    2. Template (Template): Responsible for how to display the page to the user
    3. View: Responsible for business logic, and call model and template when appropriate
    4. In addition, Django has a URL dispatcher that distributes page requests for URLs to different view processes, and then calls the corresponding model and template

Summarize:

The Django MTV model is essentially no different from the MVC pattern, with some differences in definition, such as the MVC View and the MVT view

MVC and MVT

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.