227 points · by equilibrium · 13y ago · 42 comments
IMO, CBVs are good, but for many cases FBV are simpler to code and easier to understand.
I've come to a snag at "Writing a Test" (http://effectivedjango.com/tutorial/models.html#writing-a-te... ) though, it's not clear which file I should be adding the test class to.
From following the tutorial I would think models.py but from browsing the file structure I would expect test.py
http://sphinx-doc.org/latest/builders.html#sphinx.builders.e...
Btw, there are some weird formatting issues in the tutorial (underscores after links?).
https://github.com/clutchio/clutch/blob/master/django_ext/ht...
https://github.com/samuelclay/NewsBlur/blob/master/utils/jso...
There is also an is_ajax() test in Django (not that useful) and various apps that provide REST interfaces that you'd probably want to use for bigger AJAX-y apps.
It seems to me the only durable advantage to the free version is that if it isn't working out you can abandon it after 15 minutes at a fraction of the cost. If there were a credible way to sell knowledge products "satisfaction guaranteed" I'd think that people would be a lot less sensitive to the difference between free and $14.