Django REST framework vs .NET

Need advice about which tool to choose?Ask the StackShare community!

Django REST framework

1.9K
2K
+ 1
310
.NET

10.1K
5.7K
+ 1
1.9K
Add tool

Django REST framework vs .NET: What are the differences?

What is Django REST framework? Web APIs for Django. Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs.

What is .NET? A free, cross-platform, open source developer platform for building many different types of applications. .NET is a general purpose development platform. With .NET, you can use multiple languages, editors, and libraries to build native applications for web, mobile, desktop, gaming, and IoT for Windows, macOS, Linux, Android, and more.

Django REST framework and .NET are primarily classified as "Microframeworks (Backend)" and "Frameworks (Full Stack)" tools respectively.

Some of the features offered by Django REST framework are:

  • The Web browsable API is a huge usability win for your developers.
  • Authentication policies including OAuth1a and OAuth2 out of the box.
  • Serialization that supports both ORM and non-ORM data sources.

On the other hand, .NET provides the following key features:

  • Multiple languages: You can write .NET apps in C#, F#, or Visual Basic.
  • Cross Platform: Whether you're working in C#, F#, or Visual Basic, your code will run natively on any compatible OS.
  • Consistent API & Libraries: To extend functionality, Microsoft and others maintain a healthy package ecosystem built on .NET Standard.

"Browsable api" is the top reason why over 54 developers like Django REST framework, while over 245 developers mention "Tight integration with visual studio" as the leading cause for choosing .NET.

Django REST framework and .NET are both open source tools. Django REST framework with 14.7K GitHub stars and 4.33K forks on GitHub appears to be more popular than .NET with 11.2K GitHub stars and 2.41K GitHub forks.

Stack Exchange, Microsoft, and Starbucks are some of the popular companies that use .NET, whereas Django REST framework is used by The3ballsoft, Uploadcare, and Crowdkeep. .NET has a broader approval, being mentioned in 1566 company stacks & 239 developers stacks; compared to Django REST framework, which is listed in 159 company stacks and 79 developer stacks.

Advice on Django REST framework and .NET
Saurav Pandit
Application Devloper at Bny Mellon · | 6 upvotes · 308.6K views

I have just started learning Python 3 weeks ago. I want to create a REST API using python. The API will be used to save form data in an Oracle database. The front end is using AngularJS 8 with Angular Material. In python, there are so many frameworks to develop REST APIs.

I am looking for some suggestions which REST framework to choose?

Here are some features I am looking for:

  • Easy integration and unit testing, like in Angular. We just want to run a command.

  • Code packaging, like in java maven project we can build and package. I am looking for something which I can push in as an artifact and deploy whole code as a package.

  • Support for swagger/ OpenAPI

  • Support for JSON Web Token

  • Support for test case coverage report

Framework can have features included or can be available by extension. Also, you can suggest a framework other than the ones I have mentioned.

See more
Replies (1)
Recommends
on
FlaskFlask
at

For starters flask provides a beautiful and easy way to create REST APIs. Also its supported by excellent beginner docs as well as a very active community. Another good thing with Flask is its widely available list of plugins which allow you to build as you go. Its also good in performance and can scale to a quite decent level. However, if you are sure your project is going to be fairly big, it would be better to start with Django as it provides a lot of features out of the box and is extremely stable in performance. Both these frameworks have support for Swagger, JWT, Coverage Report although you have to install plugins for them. Deploying both of these are fairly simple and there is huge documentation available. Django has one of the best documentations I have come across. I hope I was able to answer your queries.

See more
Decisions about Django REST framework and .NET
Ing. Alvaro Rodríguez Scelza
Software Systems Engineer at Ripio · | 9 upvotes · 496.4K views

Decided to change all my stack to microsoft technologies for they behave just great together. It is very easy to set up and deploy projects using visual studio and azure. Visual studio is also an amazing IDE, if not the best, when used for C#, it allows you to work in every aspect of your software.

Visual studio templates for ASP.NET MVC are the best I've found compared to django, rails, laravel, and others.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Django REST framework
Pros of .NET
  • 66
    Easy to use
  • 65
    Browsable api
  • 53
    Great documentation
  • 50
    Customizable
  • 42
    Fast development
  • 9
    Easy to use, customizable, pluggable, serializer
  • 8
    Python
  • 7
    Django ORM
  • 5
    FastSerialize
  • 3
    Less code
  • 2
    Easy implementation
  • 272
    Tight integration with visual studio
  • 261
    Stable code
  • 190
    Great community
  • 182
    Reliable and strongly typed server side language.
  • 140
    Microsoft
  • 119
    Fantastic documentation
  • 89
    Great 3rd party libraries
  • 80
    Speedy
  • 71
    Great azure integration
  • 63
    Great support
  • 34
    Highly productive
  • 34
    Linq
  • 34
    C#
  • 31
    High Performance
  • 28
    Great programming languages (C#, VB)
  • 26
    Open source
  • 19
    Powerful Web application framework (ASP.NET MVC)
  • 16
    Fast
  • 16
    Clean markup with razor
  • 15
    Powerful ORM (EntityFramework)
  • 14
    Dependency injection
  • 10
    Visual studio + Resharper = <3
  • 10
    Constantly improving to keep up with new trends
  • 9
    High-Performance
  • 8
    TFS
  • 8
    Security
  • 7
    Job opportunities
  • 7
    Integrated and Reliable
  • 7
    Huge ecosystem and communities
  • 6
    Light-weight
  • 6
    Lovely
  • 5
    {get; set;}
  • 5
    Variations
  • 5
    Asynchrony
  • 4
    Scaffolding
  • 4
    Support and SImplicity
  • 4
    Default Debuging tools
  • 4
    Concurrent
  • 4
    Useful IoC
  • 4
    Entity framework
  • 3
    Nuget package manager
  • 3
    Blazor
  • 2
    F♯

Sign up to add or upvote prosMake informed product decisions

Cons of Django REST framework
Cons of .NET
  • 2
    Bad documentation
  • 2
    Reimplements Django functionality
  • 1
    No support for URL Namespaces
  • 0
    Bad CSRF handling
  • 13
    C#
  • 12
    Too expensive to deploy and maintain
  • 8
    Microsoft dependable systems
  • 8
    Microsoft itself
  • 5
    Hard learning curve
  • 3
    Tight integration with visual studio
  • 3
    Not have a full fledged visual studio for linux
  • 1
    Microsoft itself 🤡🥲

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Django REST framework?

It is a powerful and flexible toolkit that makes it easy to build Web APIs.

What is .NET?

.NET is a general purpose development platform. With .NET, you can use multiple languages, editors, and libraries to build native applications for web, mobile, desktop, gaming, and IoT for Windows, macOS, Linux, Android, and more.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Django REST framework?
What companies use .NET?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Django REST framework?
What tools integrate with .NET?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

Git.NETCloudBees+3
7
1084
GitHubPythonReact+42
49
40845
GitHubPythonNode.js+47
55
72612
PythonDjangoDjango REST framework+3
6
5660
What are some alternatives to Django REST framework and .NET?
Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Flask
Flask is intended for getting started very quickly and was developed with best intentions in mind.
Tastypie
Tastypie is a webservice API framework for Django. It provides a convenient, yet powerful and highly customizable abstraction for creating REST-style interfaces.
Swagger UI
Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation and sandbox from a Swagger-compliant API
Graphene
Graphene is a Python library for building GraphQL schemas/types fast and easily.
See all alternatives