Software Alternatives, Accelerators & Startups

Django REST framework VS Django Ninja

Compare Django REST framework VS Django Ninja and see what are their differences

Django REST framework logo Django REST framework

Django REST framework is a toolkit for building web APIs.

Django Ninja logo Django Ninja

Django Ninja - Django REST framework with high performance, easy to learn, fast to code.
  • Django REST framework Landing page
    Landing page //
    2021-09-18
  • Django Ninja Landing page
    Landing page //
    2023-08-22

Django REST framework videos

Django Vs Django Rest Framework 2020

More videos:

  • Review - Getting Started With Django REST Framework

Django Ninja videos

Django Ninja Gold

Category Popularity

0-100% (relative to Django REST framework and Django Ninja)
API Tools
100 100%
0% 0
Application And Data
0 0%
100% 100
APIs
100 100%
0% 0
Web Frameworks
0 0%
100% 100

User comments

Share your experience with using Django REST framework and Django Ninja. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Django Ninja should be more popular than Django REST framework. It has been mentiond 26 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Django REST framework mentions (3)

  • API framework choice?
    Django Rest Framework seems like the most mature and works great with Django. But its strength, if I understand correctly, is for auto-creating all the necessary endpoints for manipulating models, which might be useful for data entry applications. I know that it's super flexible and probably my use case will be covered, but it seems that this it might get complicated. Source: almost 2 years ago
  • Django REST difference between permission classes and authentication classes
    There is one last thing I'm a little confused on with Django Rest Framework and that's the different between permission classes and authentication classes. Source: about 2 years ago
  • How to disable admin-style browsable interface of django-rest-framework?
    I am using django-rest-framework. It provides an awesome Django admin style browsable self-documenting API. But anyone can visit those pages and use the interface to add data (POST). How can I disable it? Source: over 2 years ago

Django Ninja mentions (26)

  • Building a Blog in Django
    > The only place I really see Django at large companies is as an api using DRF or something. This is not a bad thing. Using Django as an API backend is amazingly fast in terms of development time, especially with modern frameworks such as django-ninja [1]. Just use the built-in ORM to create models, write your endpoints, and use the built-in admin interface to play with the database if you don't have endpoints for... - Source: Hacker News / 8 months ago
  • Learning Django
    Personally, I also prefer django-ninja to DRF. Source: 11 months ago
  • Django Views – The Right Way
    Or just use django-ninja if you are writing an API. Maybe it's just because I came from teams that used tornado and then fastapi but it seems like everything in this article would be solved by using a simpler interface for writing endpoints. https://django-ninja.rest-framework.com/. - Source: Hacker News / 11 months ago
  • Django 4.2 released
    Also recommend Django-Ninja. It basically reimplements fastapi's type and decorator-based API construction, but embedded directly in django so you have access to django's ORM and middleware library. Source: about 1 year ago
  • Django 4.2 Released
    A good compromise I have found is to use Django Ninja [1]. It is inspired by FastAPI, so it has a lot of the nice things like the automatically generated Swagger/OpenAPI docs, as well as having routers as decorators, and using python types for automatic serialization. While I think FastAPI is great in its first class async support, Django has the Django ORM, plus Django Admin, which for me have been indisposable.... - Source: Hacker News / about 1 year ago
View more

What are some alternatives?

When comparing Django REST framework and Django Ninja, you can also consider the following products

Postman - The Collaboration Platform for API Development

FastAPI - FastAPI is an Open Source, modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.

Apigee - Intelligent and complete API platform

Tastypie - Tastypie is a webservice API framework for Django.

Amazon API Gateway - Create, publish, maintain, monitor, and secure APIs at any scale

ExpressJS - Sinatra inspired web development framework for node.js -- insanely fast, flexible, and simple