Actually i would prefer it if models do most of the major work. And views to convert them into a format suitable for presentation. Sometimes that not possible, but it just feels cleaner and more manageable if it is.
Actually, if you apply the MVC paradigm, the Django View is a mix of View and Controller. Admittedly a little confusing
Re:Django for a Rails Developer
by scorpion032 on Thursday November 26, 2009 @10:58AM
(#962772)
Hence, it is defined as MTV.
Re:Django for a Rails Developer
by BerislavLopac on Thursday November 26, 2009 @03:09PM
(#963061)
Sometimes I wonder if they renamed the pattern just to keep up the music theme...
Same here - MTC would have been simpler to understand for me.
Re:Django for a Rails Developer
by djb_hackernews on Thursday November 26, 2009 @08:20PM
(#963305)
but Google thinks its MVT.
Perfectly stated. I still have the piece of paper from a couple of years ago where I drew this out (I'm both analytical and spatial/visual), and my holistic diagram looks just like what you wrote.
At the risk of being negative, I think the real issue is that the extensive documentation is geared more towards designers than hackers.
I am far far away from being considered a designer and I consider the Django documentation to be excellent for programmers. Just because it also caters to designers, the documentation is not necessarily watered down.
Re:Django for a Rails Developer
by scorpion032 on Thursday November 26, 2009 @10:46AM
(#962759)
A perfect tl;dr.
* urls point to views
* views do stuff. Perhaps hard, manly stuff. Perhaps involving models. Django views have hard, beefy beceps. They're awfully controlling.
* the view passes a dict of results to the template, which is sent as a response to the browser.
Once you get that, it's not so hard.