Slide 1

Slide 1 text

Django vs Flask How do you choose? Alan Hamlett, WakaTime CTO GitHub/Twitter/Gmail: alanhamlett

Slide 2

Slide 2 text

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.

Slide 3

Slide 3 text

Community Django Born in 2005 Larger, older community 13,820 stars on GitHub 607 watchers on GitHub Flask Born in 2010 Newer, active community 13,489 stars on GitHub 1,036 watchers on GitHub

Slide 4

Slide 4 text

Landscape Who uses Django? Eventbrite Instagram The Onion Prezi Bitbucket Pinterest Udemy Coursera Disquis Who uses Flask? Reddit Twilio WakaTime President Obama Mailgun Vine Keen.io Close.io (ElasticSales) Runscope

Slide 5

Slide 5 text

Performance

Slide 6

Slide 6 text

Performance both slow, used to save dev time

Slide 7

Slide 7 text

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 Started Code vs Config Extra Features Database ORM Building APIs

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

Pirates use Flask, the Navy uses Django (WakaTime is a pirate) http://bit.ly/1EOnDkJ (https://speakerdeck.com/alanhamlett/django-vs-flask)