News for hackers. Stuff that matters.
Re:Django for a Rails Developer by nailer on Thursday November 26, 2009 @10:43AM (#962754)
For me the hardest thing about Django was comprehending that the 'View' is doing most of the work.

* 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.

Re:Django for a Rails Developer by sidmitra on Saturday November 28, 2009 @08:55AM (#965138)
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.
Re:Django for a Rails Developer by ulf on Thursday November 26, 2009 @10:44AM (#962757)
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...
Re:Django for a Rails Developer by nailer on Thursday November 26, 2009 @04:51PM (#963143)
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)
Re:Django for a Rails Developer by riffer on Thursday November 26, 2009 @11:01AM (#962776)
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.

Re:Django for a Rails Developer by FraaJad on Thursday November 26, 2009 @12:23PM (#962862)
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.