8 ms·
Django-Ninja is fantastic and based on pydantic.
by tfeldmann 3y ago
Django-Ninja is fantastic and based on pydantic.
- winrid 3y agoThis. I found DRF gets very confusing with all the abstraction for complicated stuff. For simple APIs, it's very nice (I used it on govscent.org). SidewaysData uses Ninja and I love it so far.
- gv83 3y agoDRF becomes hard to understand when you use magical stuff like class based controllers and so on. stick to functions and it's actually very simple!
- winrid 3y agoYou're absolutely right - however I did not even know I could use functions. I didn't see that in the docs somehow. Also I think I remember with DRF I had trouble generating a good openapi client. With ninja it works really well.
- stavros 3y agoI much prefer Ninja as well. Is it active, these days? It feels like it's got much less of an ecosystem than FastAPI.
- selcuka 3y ago> Is it active, these days? Yes. They are currently migrating to Pydantic 2 which Ninja 1.0 will be based on.