Hacker News new | ask | show | jobs
by asalahli 1251 days ago
In my view (hehe), Django's class based views is a good idea implemented poorly. In theory you should be able to use any of the built-in class based generic views with minimal customizations to suit your needs, except when you want to do such customizations you're left dealing with a huge inheritance tree of mixins. It's all magic unless you know or wanna read the documentation on what each mixin brings to the view, that is _if_ you know what mixins are involved exactly, of course.
1 comments

Are you aware of https://ccbv.co.uk/? After I discovered that, class based views became easy.
And if you're using DRF there's https://www.cdrf.co/
Wow, 8 years of using Django and I did not know about either of these. Thanks!