Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
relevance between Djangio and MVC
is django a MVC or just use architecture of MVC
2 Answers
+ 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.
+ 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).