Django REST framework
Django REST framework

712
488
251
Flask
Flask

3.7K
2.9K
1.1K
Add tool

Django REST framework vs Flask: 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, Flask is detailed as "a microframework for Python based on Werkzeug, Jinja 2 and good intentions". Flask is intended for getting started very quickly and was developed with best intentions in mind.

Django REST framework and Flask can be categorized as "Microframeworks (Backend)" tools.

"Browsable api" is the primary reason why developers consider Django REST framework over the competitors, whereas "Lightweight" was stated as the key factor in picking Flask.

Django REST framework and Flask are both open source tools. Flask with 44.8K GitHub stars and 12.6K forks on GitHub appears to be more popular than Django REST framework with 14.5K GitHub stars and 4.29K GitHub forks.

reddit, Lyft, and MIT are some of the popular companies that use Flask, whereas Django REST framework is used by AX Semantics, Crowdkeep, and Shippo. Flask has a broader approval, being mentioned in 502 company stacks & 509 developers stacks; compared to Django REST framework, which is listed in 159 company stacks and 77 developer stacks.

What is Django REST framework?

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

What is Flask?

Flask is intended for getting started very quickly and was developed with best intentions in mind.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose Django REST framework?
Why do developers choose Flask?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using Django REST framework?
What are the cons of using Flask?
What companies use Django REST framework?
What companies use Flask?

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

What tools integrate with Django REST framework?
What tools integrate with Flask?

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

What are some alternatives to Django REST framework and Flask?
Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
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.
Spring Boot
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
See all alternatives
Decisions about Django REST framework and Flask
No stack decisions found
Interest over time
Reviews of Django REST framework and Flask
Avatar of mjhea0
Software Engineer at TestDriven Labs
Review ofFlaskFlask

Flask is a light, yet powerful Python web framework perfect for quickly building smaller web applications. It's a "micro-framework" that's easy to learn and simple to use, so it's perfect for those new to web development as well as those looking to rapidly develop a web application.

How developers use Django REST framework and Flask
Avatar of Jack Littleton
Jack Littleton uses FlaskFlask

I use Flask for times when I need to create a REST API that interfaces with other Python code, or there is no specific reason why I'd want to use Node.JS. I prefer Flask because of its small learning curve, allowing me to get started coding as quickly as possible

Avatar of Cloudify
Cloudify uses FlaskFlask

This lightweight web framework enables quick REST API development while enabling easy clustering, and the usage of multiple worker processes required to scale the REST API service to meet high volume requirements.

Avatar of Yaakov Gesher
Yaakov Gesher uses Django REST frameworkDjango REST framework

Django REST delivered all the content to the BI, making calls to the Postgres DB, aggregating numeric data, and automatically associating data models at the time of row creation.

Avatar of Alec Cunningham
Alec Cunningham uses Django REST frameworkDjango REST framework

Instead of using Django for both back and frontend, I use DRF to layout an API that ReactJs can pull data from. Easy to setup, well documented, and works seamlessly with React.

Avatar of Seungkwon Park
Seungkwon Park uses Django REST frameworkDjango REST framework

django에서 api를 만드는데 최고의 framework라고 생각합니다. 아직은 tutorial 수준의 class base view, function base view 수준으로 사용합니다.

하지만 현재 진행중인 프로젝트의 심화로 REST framework를 심도있게 다룰 예정입니다.

Avatar of Sail Tactics
Sail Tactics uses FlaskFlask

Service to query NOAA weather forecasts data and service to build tidal current forecast maps using AWS EC2 and Geoserver

Avatar of OnlineCity
OnlineCity uses FlaskFlask

Flask drives our APIs, both the Website APIs and the majority of the REST Messaging APIs

Avatar of papaver
papaver uses FlaskFlask

used flask for a few personal projects. enjoyed its simplicity and ease of use.

Avatar of Blair Gemmer
Blair Gemmer uses Django REST frameworkDjango REST framework

Really great framework for building RESTful APIs. Lots of plugins for it!

Avatar of TOMIS
TOMIS uses Django REST frameworkDjango REST framework

For our backend REST API

How much does Django REST framework cost?
How much does Flask cost?
Pricing unavailable
Pricing unavailable
News about Django REST framework
More news