3 ms·
> Please. For the love of God, always use class based views for almost everything. This. 100%. Leverage as much pre-built stuff you can, especially with someth
by cjohnson318 4y ago
> Please. For the love of God, always use class based views for almost everything.
This. 100%. Leverage as much pre-built stuff you can, especially with something as important as your HTTP layer. Whenever I run out of CRUD verbs for a model and I need to add a custom endpoint, I'll implement it in a separate APIView sublcass. Convention over configuration; write boring code.