Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
MVC is a practice in general. It is not limited to Django. You can choose to apply MVC in Django and you can choose to not apply MVC in Django.
13th Apr 2020, 12:12 AM
Gordon
Gordon - avatar
+ 1
Django is MVT. Model is as you know where you structure your database models. Template is where the frontend markup stuff goes. Essentially Template is View of MVC. Views in django are functions which your router uses before visiting that link. Views of django is equal to Controller of MVC. The reason why MVT is different than MVC. You dont need controller for each of your models. So views are completely independent of your templates(views in MVC).
13th Apr 2020, 12:36 AM
Talha Altınel (The Last Sith Lord)
Talha Altınel (The Last Sith Lord) - avatar