Simplicity of Function Based Views and Re-usability of Class Based Views (CBV vs FBV)

preview_player
Показать описание
#django

FBV = function based views. CBV = class based views. In this screencast I will show you a real life use-case where class based views are at their prime - but where function based views fail miserably. The idea is to make it very clear where CBV are applicable and where not.
Рекомендации по теме
Комментарии
Автор

Could you make a video on how to perform actions on list views via AJAX. For example, let's say I have a list of articles and I want the user to be able mark one as favorite or delete one without reloading the page. What's the best practice? Should I post to an API endpoint or submit as a form?

Thanks for the great content

DanteS
Автор

Thank you a lot.
Is it a bad practice to use FBV & CBV in same file or generaly same project?

symphonytheth
Автор

How can I can find code of this project?

nhanNguyen-wofy