4 ms·
Also used DRF in prod, the serialization in particular is super slow. Also no asyncio isn’t great in this day and age. Plain django, without DRF, just using J
by emptysea 5y ago
Also used DRF in prod, the serialization in particular is super slow.
Also no asyncio isn’t great in this day and age.
Plain django, without DRF, just using JsonResponse is pretty great TBH, has all the batteries for things like auth and testing. Although having it be async would be a huge plus.
I recommend checking out pydantic and using that to enforce a schema for endpoint responses. Also much easier to understand (imho) than DRF’s serializers and you get static typing for free!