Difference b/w Class & Function Based Views in Django

January 15, 2025 ยท View on GitHub

Function Based Views Class Based Views
  1. More setup
  2. Less Abstraction
  3. Requires error checking
  4. Less modular
  1. Little setup
  2. More "magic" abstraction
  3. Error handling built-in (generics)
  4. Much more modular
  5. Sane and stable generic API