Flask vs. Django

15,835 views

Published on

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

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
15,835
On SlideShare
0
From Embeds
0
Number of Embeds
11,272
Actions
Shares
0
Downloads
40
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

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

×