by emptysea · 4y ago · 0 comments
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!
It's most of FastAPI (auto docs generation, great Pydantic integration, etc) but for Django.