Django's MVC architecture

46 views
Skip to first unread message

doug.b...@gmail.com

unread,
Dec 5, 2005, 2:06:01 PM12/5/05
to Django users
I just posted about this over at the blog and just wondered if anyone
had noticed this?

Django seems to switch things around a bit so MVC has become MTV.
If you compare it to RoR which calls its templates views (correct) and
calls its control code "controller" and so on. Django seems to call
its equivalent 'control' code a 'view' and its located in the
"views.py" file. What you'd expect to be a view (the template) is
called a template.

So Django's naming convention appears to be: Model-Template-View.

A little confusing when coming from RoR.

My original post is here:
http://straw-dogs.co.uk/tao-blog/2005/12/05/djangos-mvc-architecture/

Jacob Kaplan-Moss

unread,
Dec 5, 2005, 2:34:50 PM12/5/05
to django...@googlegroups.com
Hi Doug --

This is addressed in the FAQ: http://www.djangoproject.com/
documentation/faq/

Jacob

doug.b...@gmail.com

unread,
Dec 5, 2005, 4:08:00 PM12/5/05
to Django users
Haha. I hadn't noticed that. Very good but it still functions and
appears like a mis-labelled MVC model. However, I'm still very much
smitten with it. I certainly wouldn't rid myself of my other half
simply because she had an unusual name.

Reply all
Reply to author
Forward
0 new messages