0 votes
in Data Handling by
Explain Django architecture.

1 Answer

0 votes
by

Django follows the MVT or Model View Template architecture whcih is based on the MVC or Model View Controller architecture. The main difference between these two is that Django itself takes care of the controller part.

MVT-Django Interview Questions-Edureka

According to Django, the ‘view’ basically describes the data presented to the user. It does not deal with how the data looks but rather what the data actually is. Views are basically callback functions for the specified URL’s and these callback functions describe which data is presented.

The ‘templates’ on the other hand deal with the presentation of data, thereby, separating the content from its presentation. In Django, views delegate to the templates to present the data.

The ‘controller’ here is Django itself which sends the request to the appropriate view in accordance with the specified URL. This is why Django is referred to as MTV rather than MVC architecture.

Related questions

0 votes
asked Apr 3, 2020 in Data Handling by amita rallin
0 votes
asked Apr 3, 2020 in Data Handling by amita rallin
...