Posts

Showing posts with the label class-based view

Django - When should we use Function-based and Class-based views?

Image
This flowchart explains when we use Function-based views and when we should use Class-based views instead: (source: Two Scoops of Django by Daniel Greenfeld and Audrey Roy)