Closed LalithChoudharyG closed 4 weeks ago
Many popular frameworks that use MVC explicitly mention it in their documentation. Django: Uses a similar pattern, called MTV (Model-Template-View), which is conceptually similar to MVC.
Django: Models in models.py. Views (template rendering logic) in views.py. HTML templates in a templates/ folder.
Here I have mention the difference between MVC and MTV so that everyone can get clear view of both things.
Key Differences:
1.) Controller vs. View:
In MVC, the Controller handles logic and input/output, interacting with both the Model and the View.
2.) View and Template Roles:
In MVC, the View directly handles the user interface (UI)
3.) Routing:
In MVC, routing often happens within the Controller layer, which determines which action to take for a specific request.
Gather the info about MVC and ORM and help the responsible teammates to achieve it.