Need advice about which tool to choose?Ask the StackShare community!
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.
Pros of Django REST framework
- Easy to use66
- Browsable api65
- Great documentation53
- Customizable50
- Fast development42
- Easy to use, customizable, pluggable, serializer9
- Python8
- Django ORM7
- FastSerialize5
- Less code3
- Easy implementation2
Pros of Spring
- Java230
- Open source157
- Great community136
- Very powerful123
- Enterprise114
- Lot of great subprojects64
- Easy setup60
- Convention , configuration, done44
- Standard40
- Love the logic31
- Good documentation13
- Dependency injection11
- Stability11
- MVC9
- Easy6
- Makes the hard stuff fun & the easy stuff automatic3
- Strong typing3
- Code maintenance2
- Best practices2
- Maven2
- Great Desgin2
- Easy Integration with Spring Security2
- Integrations with most other Java frameworks2
- Java has more support and more libraries1
- Supports vast databases1
- Large ecosystem with seamless integration1
- OracleDb integration1
- Live project1
Sign up to add or upvote prosMake informed product decisions
Cons of Django REST framework
- Bad documentation2
- Reimplements Django functionality2
- No support for URL Namespaces1
- Bad CSRF handling0
Cons of Spring
- Draws you into its own ecosystem and bloat15
- Verbose configuration3
- Poor documentation3
- Java3
- Java is more verbose language in compare to python2