-
I think we should try to avoid doing function based views and leverage the awesomeness of class based views (CBV).
I know that it can be daunting at first, but when one has played around with them a …
-
I'm currently on Chapter 15, and facing problem setting a class based view, there were no hints for the same too in the repository.
Would making a PR for the same be acceptable?
-
You've used function based views (which are fine, and will work!) but this makes your life more difficult than it needs to be. FBVs are good when you need lots of specific control / granular control -…
-
Will you plan to add class based views as explained in the videos?
-
I would like to apply the class-based views, not to ViewSets or function-based views.
For example I would like to use the access policies to Views derived from rest_framework.generics, such as Retrie…
-
-
Class-based views make it easier, for example, to memoize `prepare_message` results.
-
I wrote some of the code to do this in a branch https://github.com/python-security/pyt/compare/class_based_views, but since I'm working on other things and this feature seems cool and important I'm ma…
-
https://docs.djangoproject.com/en/3.1/topics/http/views/
https://docs.djangoproject.com/en/3.1/ref/class-based-views/
-
In HEAD we currently have some rudimentary support for class based routes, that is routes on class methods. I would really like to improve that part.
Currently we do this something like this:
```
cl…