django vs flask
DESCRIPTION
A lightning talk I gave at PyLadiesSF's Mock DjangoCon on Aug 30, 2012.TRANSCRIPT
FLASK VS DJANGO
RACHEL SANDERSAUGUST 30, 2012
WHAT THIS TALK IS NOT
IS MAGIC
FRIENDSHIP
DJANGO
comes with everythingawesome
documentationgreat community
FLASK
from flask import Flaskapp = Flask(__name__)
@app.route("/")def hello(): return "Hello World!"
if __name__ == "__main__": app.run()
WHY THE @#$! WOULD
I WANT TO USE FLASK
RACHEL SANDERSAUGUST 30, 2012
PHILOSOPHY
PHILOSOPHY
smallimport only what you
needpythonic
YOU NEED FLEXIBILITY
YOU NEED FLEXIBILITY
less constraints on your codeorganize how you likepull in what you want
YOU NEED FLEXIBILITY
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 adminNo 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