Django view functions are simple and easy to use but sometimes you find yourself repeating a lot of the same work over and over. Luckily, Django also offers a way to create views as classes which can lead to cleaner, more reusable code. Class-based views have a lot of nooks and crannies, though, so let us show you around this powerful tool!
What you'll learn
- Class-based views
- Generic views
- Mixins