Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Flask vs. Django

16,142 views

Published on

A lightning talk I gave at PyLadie's Mock DjangoCon on Aug 30, 2012.

  • Be the first to comment

Flask vs. Django

  1. 1. FLASK VS DJANGO R AC H E L S A N D E RS AU G U S T 3 0 , 2 01 2
  2. 2. WHAT THIS TALK IS NOT
  3. 3. FRIENDSHIPI S M AG I C
  4. 4. DJANGO comes with everythingawesome documentation great community
  5. 5. FLASKfrom flask import Flaskapp = Flask(__name__)@app.route("/")def hello(): return "Hello World!"if __name__ == "__main__": app.run()
  6. 6. WHY THE @#$! WOULDI 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
  7. 7. PHILOSOPHY
  8. 8. PHILOSOPHY smallimport only what you need pythonic
  9. 9. YOU NEED FLEXIBILIT Y
  10. 10. YOU NEED FLEXIBILIT Yless constraints on your code organize how you like pull in what you want
  11. 11. YOU NEED FLEXIBILIT Ymore plugins every day (literally)
  12. 12. YOUR DATA IS WEIRD
  13. 13. YOUR DATA IS WEIRDDjango ORM doesn’t always fit *cough* SQLAlchemy *cough*
  14. 14. YOUR DATA IS WEIRD No ORM = no adminNo ORM = fewer modules …why django again?
  15. 15. YOUR DATA IS WEIRD if you need more,why not write from scratch?
  16. 16. IN CONCLUSION…
  17. 17. HOORAY FOR EVERYBODY! they’re both great!use the right tool for you

×