FLASK VS DJANGO




         R AC H E L S A N D E RS
         AU G U S T 3 0 , 2 01 2
WHAT THIS TALK IS NOT
FRIENDSHIP
I S M AG I C
DJANGO




 comes with everything
awesome documentation
   great community
FLASK

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
  return "Hello World!"

if __name__ == "__main__":
   app.run()
WHY THE @#$! WOULD
I WANT TO USE FLASK




             R AC H E L S A N D E RS
             AU G U S T 3 0 , 2 01 2
PHILOSOPHY
PHILOSOPHY




          small
import only what you need
        pythonic
YOU NEED FLEXIBILIT Y
YOU NEED FLEXIBILIT Y




less constraints on your code
    organize how you like
    pull in what you want
YOU NEED FLEXIBILIT Y




more plugins every day (literally)
YOUR DATA IS WEIRD
YOUR DATA IS WEIRD




Django ORM doesn’t always fit
    *cough* SQLAlchemy *cough*
YOUR DATA IS WEIRD




  No ORM = no admin
No ORM = fewer modules
     …why django again?
YOUR DATA IS WEIRD




     if you need more,
why not write from scratch?
IN CONCLUSION…
HOORAY FOR EVERYBODY!




   they’re both great!
use the right tool for you

Flask vs. Django