Hacker News new | ask | show | jobs
by tfeldmann 1005 days ago
Django-Ninja is fantastic and based on pydantic.
2 comments

This. 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.
DRF 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!
You'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.

I much prefer Ninja as well. Is it active, these days? It feels like it's got much less of an ecosystem than FastAPI.
> Is it active, these days?

Yes. They are currently migrating to Pydantic 2 which Ninja 1.0 will be based on.