Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Django vs Flask

Django vs Flask

How to choose between Django and Flask.

Alan Hamlett

April 16, 2015
Tweet

Other Decks in Programming

Transcript

  1. Django vs Flask How do you choose? Alan Hamlett, WakaTime

    CTO GitHub/Twitter/Gmail: alanhamlett
  2. 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.
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. Pirates use Flask, the Navy uses Django (WakaTime is a

    pirate) http://bit.ly/1EOnDkJ (https://speakerdeck.com/alanhamlett/django-vs-flask)