Django - Overview

As you already understand, Django may be a Python internet framework. And like most up-to-date framework, Django supports the MVC pattern. 1st let's have a look at what's the Model-View-Controller (MVC) pattern, so we are going to consider Django’s specificity for the Model-View-Template (MVT) pattern.

MVC Pattern
When talking regarding applications that has UI (web or desktop), we tend to typically mention MVC design. And because the name suggests, MVC pattern relies on 3 components: Model, View, and Controller. Check our MVC tutorial here to understand a lot of.

DJANGO MVC - MVT Pattern
The Model-View-Template (MVT) is slightly totally different from MVC. really the most distinction between the 2patterns is that Django itself takes care of the Controller half (Software Code that controls the interactions between the Model and View), effort U.S.A. with the guide. The guide may be a HTML file mixed with Django guide Language (DTL).

The following diagram illustrates however every of the elements of the MVT pattern interacts with one another to serve a user request −
DJANGO MVC - MVT Pattern

DJANGO MVC - MVT Pattern
The developer provides the Model, the read and also the guide then simply maps it to a computer address and Django will the magic to serve it to the user.

Post a Comment

Thanks for comment.

Previous Post Next Post