MTV and MVC difference

116 views
Skip to first unread message

Mukul Chakravarty

unread,
Apr 19, 2016, 7:53:07 AM4/19/16
to Django users
What is the difference between Models in django MTV architecture and Models in rails MVC architecture ?

Javier Guerra Giraldez

unread,
Apr 19, 2016, 9:55:35 AM4/19/16
to django...@googlegroups.com
On 19 April 2016 at 12:53, Mukul Chakravarty <mukul...@gmail.com> wrote:
> What is the difference between Models in django MTV architecture and Models
> in rails MVC architecture ?


IMNSHO, mostly about the realization that "controller" (as defined in
the original, GUI-oriented formulation of MVC) doesn't have a place in
every web application.

In a very concrete sense, the best place for it is the framework
itself. So that leaves us with just models and presentation. But the
presentation is best split in a data-gathering function and a
non-turing-complete template; so now you have Models, Views and
Templates.

Note also that Django Views are typically much thinner than MVC views.

--
Javier
Reply all
Reply to author
Forward
0 new messages