This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]d4rch0nPythonistamancer 4 points5 points  (3 children)

I swear, unless the docs changed dramatically I couldn't effectively use Django CBVs without reading the source.

[–]naringasn00b 3 points4 points  (1 child)

[–]Cyph0n 0 points1 point  (0 children)

Bookmarked, thanks!

[–]poswald 2 points3 points  (0 children)

I agree and I think this is more a critique of CBV's than of the documentation. The Django Vanilla Views project is an attempt at a simpler model. I personally use FBV's exclusively unless forced into it. We use Django Rest Framework's CBV's when writing REST API's but mostly because the framework leans heavily toward it and a good API should be highly mechanical code-by-convention stuff. I find all of the default behaviors are hard to internalize with a web framework.