News for hackers. Stuff that matters.
Re:Django Ninja by radus on Friday July 09, 2021 @02:42PM (#27787011)
I'm looking into adding some sort of REST API layer to a Django app and I've been reading some negative things about Django Rest Framework (DRF), which is the default choice for this functionality in Django-world. This project is inspired by FastAPI and is potentially a lighter weight alternative to DRF and I'm wondering if HNers have experience with it and/or DRF.

My hunch is that it's probably better to stay with the Django way of doing things (DRF), in spite of the online chatter calling it bloated.

Re:Django Ninja by vital1k on Monday July 12, 2021 @08:42AM (#27809641)
Hello, I'm the author

so at this moment the project is slowly growing (about 10+ companies I know are starting to adopt it )

Main benefits are - OpenAPI spec oriented - lightweigh and 0 intrusion to django-core (basically django-ninja is just a validation/documentation layer for django views) - high performance (some cases can be 2x-100x faster with than DRF)

Re:Django Ninja by radus on Thursday July 15, 2021 @03:57PM (#27849353)
Thank you for the reply!