Difference b/w Class & Function Based Views in Django

Function Based ViewsClass 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

Last updated