Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 5, 2005 19:06:13

[EMAIL P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django's MVC architecture


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/

Offline

#2 Dec. 5, 2005 19:35:03

Jacob K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django's MVC architecture


Hi Doug --This is addressed in the FAQ:http://www.djangoproject.com/documentation/faq/Jacob

Offline

#3 Dec. 5, 2005 22:07:31

[EMAIL P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django's MVC architecture


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.

Offline

Board footer

Moderator control

Enjoy the 23rd of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support