- Flask Framework Cookbook(Second Edition)
- Shalabh Aggarwal
- 61字
- 2021-06-24 13:58:09
Writing class-based views
Flask introduced the concept of pluggable views in version 0.7; this added a lot of flexibility to the existing implementation. We can write views in the form of classes; these views can be written in a generic fashion and allow for an easy and understandable inheritance. In this recipe, we will understand how to create such class-based views.