django vs flask
TRANSCRIPT
![Page 1: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/1.jpg)
Django vs FlaskHow do you choose?
Alan Hamlett, WakaTime CTOGitHub/Twitter/Gmail: alanhamlett
![Page 2: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/2.jpg)
Django
Python web framework for rapid development built to keep you from
reinventing the wheel.
Does more for you.
Once you’re an expert, you will build faster the Django way.
Large, powerful, scalable.
Flask
Newer Python web framework built to be easy and simple.
Micro with dependencies.
Once an expert, you will build Flask extensions to help you build faster.
Micro, flexible, scalable.
![Page 3: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/3.jpg)
CommunityDjango
Born in 2005
Larger, older community
13,820 stars on GitHub
607 watchers on GitHub
FlaskBorn in 2010
Newer, active community
13,489 stars on GitHub
1,036 watchers on GitHub
![Page 4: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/4.jpg)
LandscapeWho uses Django?
EventbriteInstagramThe Onion
PreziBitbucketPinterestUdemy
CourseraDisquis
Who uses Flask?RedditTwilio
WakaTimePresident Obama
MailgunVine
Keen.ioClose.io (ElasticSales)
Runscope
![Page 5: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/5.jpg)
Performance
![Page 6: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/6.jpg)
Performance
both slow, used to save dev time
![Page 7: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/7.jpg)
Django Flask
difficult super easy
more config more code
included 3rd party extensions
built-in SQL your choice
made for HTML best for APIs
Getting StartedCode vs ConfigExtra Features
Database ORM
Building APIs
![Page 8: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/8.jpg)
Flask Django
Django Flask
Flask Django
Flask Django
Django Flask
Flask Django
Flask Django
Django Flask
YES NO
Been coding for more than 5 years?
Django Flask
Coded in Python for more than 3 years?
Primarily dynamic HTML pages?
Will you have an API?
Service Oriented Architecture (SOA)?
Want new devs to already know your conventions?
Using multiple types of databases?
Like reading Python code? (vs reading docs)
Total Total
![Page 9: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/9.jpg)
Flask Django
Django Flask
Flask Django
Flask Django
Django Flask
Flask Django
Flask Django
Django Flask
YES NO
Been coding for more than 5 years?
Django Flask
Coded in Python for more than 3 years?
Primarily dynamic HTML pages?
Will you have an API?
Service Oriented Architecture (SOA)?
Want new devs to already know your conventions?
Using multiple types of databases?
Like reading Python code? (vs reading docs)
Total Total
I
I
I
I
I
I
I
I
3 5
![Page 10: Django vs flask](https://reader030.vdocuments.site/reader030/viewer/2022032421/55a864bf1a28abed3f8b456b/html5/thumbnails/10.jpg)
Pirates use Flask, the Navy uses Django
(WakaTime is a pirate)
http://bit.ly/1EOnDkJ
(https://speakerdeck.com/alanhamlett/django-vs-flask)