4 ms·
One of the comments on the original post complains about extra boilerplate with CBVs using django-rest-framework. I'll admit that I was concerned about this as
by apendleton 14y ago
One of the comments on the original post complains about extra boilerplate with CBVs using django-rest-framework. I'll admit that I was concerned about this as well, but after working with it for a while, I have to say that mixins are a very natural pattern for API writing. You can string together a bunch of them to get auth, pagination, etc., in a very clean way.
- pydanny 14y agoI like the django-rest-framework CBV design, finding them much more elegant (and documented) than Django's own CBVs.