Python OOP Part 2 Inheritance, Super() | Django Custom Generic View

||
Posted 4 years ago
||
Views 242
||
1 min read
0 reactions

Class-based views

A view is a callable which takes a request and returns a response. This can be more than just a function, and Django provides an example of some classes which can be used as views. These allow you to structure your views and reuse code by harnessing inheritance and mixins. There are also some generic views for tasks which we’ll get to later, but you may want to design your own structure of reusable views which suits your use case. more info from Django documents here Django Custom Generic Views


0 reactions

Discussion


Looking for Freelancing Jobs
Joined on April 15, 2020

Latest Videos