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

Django REST framework

1.9K
2K
+ 1
310
Spring

4K
4.8K
+ 1
1.1K
Add tool

Django REST framework vs Spring: What are the differences?

Developers describe Django REST framework as "Web APIs for Django". Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs. On the other hand, Spring is detailed as "Provides a comprehensive programming and configuration model for modern Java-based enterprise applications". A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

Django REST framework can be classified as a tool in the "Microframeworks (Backend)" category, while Spring is grouped under "Frameworks (Full Stack)".

"Browsable api" is the top reason why over 54 developers like Django REST framework, while over 192 developers mention "Java" as the leading cause for choosing Spring.

Django REST framework and Spring are both open source tools. It seems that Spring with 30.6K GitHub stars and 19.6K forks on GitHub has more adoption than Django REST framework with 14.7K GitHub stars and 4.33K GitHub forks.

MIT, Zillow, and Intuit are some of the popular companies that use Spring, whereas Django REST framework is used by The3ballsoft, Uploadcare, and Crowdkeep. Spring has a broader approval, being mentioned in 319 company stacks & 184 developers stacks; compared to Django REST framework, which is listed in 159 company stacks and 79 developer stacks.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Django REST framework
Pros of Spring
  • 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
  • 230
    Java
  • 157
    Open source
  • 136
    Great community
  • 123
    Very powerful
  • 114
    Enterprise
  • 64
    Lot of great subprojects
  • 60
    Easy setup
  • 44
    Convention , configuration, done
  • 40
    Standard
  • 31
    Love the logic
  • 13
    Good documentation
  • 11
    Dependency injection
  • 11
    Stability
  • 9
    MVC
  • 6
    Easy
  • 3
    Makes the hard stuff fun & the easy stuff automatic
  • 3
    Strong typing
  • 2
    Code maintenance
  • 2
    Best practices
  • 2
    Maven
  • 2
    Great Desgin
  • 2
    Easy Integration with Spring Security
  • 2
    Integrations with most other Java frameworks
  • 1
    Java has more support and more libraries
  • 1
    Supports vast databases
  • 1
    Large ecosystem with seamless integration
  • 1
    OracleDb integration
  • 1
    Live project

Sign up to add or upvote prosMake informed product decisions

Cons of Django REST framework
Cons of Spring
  • 2
    Bad documentation
  • 2
    Reimplements Django functionality
  • 1
    No support for URL Namespaces
  • 0
    Bad CSRF handling
  • 15
    Draws you into its own ecosystem and bloat
  • 3
    Verbose configuration
  • 3
    Poor documentation
  • 3
    Java
  • 2
    Java is more verbose language in compare to python

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 Spring?

A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

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

What companies use Django REST framework?
What companies use Spring?
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 Spring?

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

Blog Posts

GitHubPythonReact+42
49
40873
GitHubPythonNode.js+47
55
72671
PythonDjangoDjango REST framework+3
6
5681
What are some alternatives to Django REST framework and Spring?
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