News for hackers. Stuff that matters.
Re:Django 4.0 by WD-42 on Tuesday December 07, 2021 @01:45PM (#29476525)
I think CBVs get a lot of unnecessary hate. DetailView, ListView, DeleteView, etc save so much time and repetition for basic CRUD pages. Once things get complicated and you start having to override too many methods, it's often best to write the post(), get(), put(), etc methods explicitly. At that point you are still writing CBVs but it's much more organized.
Re:Django 4.0 by leetrout on Tuesday December 07, 2021 @02:24PM (#29477031)
They are alive and well when using Django Rest Framework