Python Django | Class Based vs Function Based Views?

preview_player
Показать описание
It's not always easy to know if you should go for a class based or function based view. And do you need classes at all?
---

Code With Stein Premium

Support me

Important links

---

#codewithstein #django #python
Рекомендации по теме
Комментарии
Автор

Just a short video I made where I talk a little bit about Classes vs Functions for views in Django.
What's your opinion on this? :-)

CodeWithStein
Автор

There is way too much overhead with CBVs. They have their place, but I use them sparingly.

sto
Автор

Can both views be used in the same project?

ednaakisa