News for hackers. Stuff that matters.
Re:Django Vanilla Views 1.0 released. by johnthealy3 on Monday September 23, 2013 @11:45AM (#6431709)
I started working with Django in 1.3.1 as my first REST framework. When I got to the views, it was easy to understand how the function responded to an HTTP request:

if request.POST:

validate

save form

redirect to success page

else if request.GET:

show the form

Learning the views this way was very helpful when I barely understood how the internet worked. So naturally, when I took on an intern this year, I got her started with the Django tutorial, then gave her the above pseudocode as an example of how to write a simple form. After she worked on it for a while and got very confused, I looked over the Django 1.5 tutorial with her and saw those awful, overmagicked generic views they use now. I spent an hour trying to implement what would have taken me two minutes if the views were written manually, until I gave up and rewrote all of her code while standing on my soapbox.

Needless to say, I've been hoping for something like this project ever since.

There are no comments on this comment yet.