Comparison of django MTV and MVC architecture

168 views
Skip to first unread message

Mukul Chakravarty

unread,
Apr 16, 2016, 10:08:56 AM4/16/16
to Django users
Can we say that views in MTV architecture is basically performing the tasks of both Models and Controller in an MVC architecture like Rails ?

Avraham Serour

unread,
Apr 17, 2016, 8:28:13 AM4/17/16
to django-users
I have no idea what rails does with his life, but you can still understand django under the MVC pattern: models are models, what django calls view is the controller and the template is the view.


On Sat, Apr 16, 2016 at 4:10 PM, Mukul Chakravarty <mukul...@gmail.com> wrote:
Can we say that views in MTV architecture is basically performing the tasks of both Models and Controller in an MVC architecture like Rails ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4c6ba552-4665-42c1-b072-61c92e9c12c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scot Hacker

unread,
Apr 17, 2016, 5:46:37 PM4/17/16
to Django users
The Django docs have an FAQ on this topic:


"Where does the “controller” fit in, then? In Django’s case, it’s probably the framework itself: the machinery that sends a request to the appropriate view, according to the Django URL configuration."

The rest of the FAQ is worth reading for further clarification.

./s
Reply all
Reply to author
Forward
0 new messages