Contenu connexe
Similaire à Django vs Flask (20)
Django vs Flask
- 5. FLASK
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
- 6. 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
- 8. PHILOSOPHY
small
import only what you need
pythonic
- 10. YOU NEED FLEXIBILIT Y
less constraints on your code
organize how you like
pull in what you want
- 13. YOUR DATA IS WEIRD
Django ORM doesn’t always fit
*cough* SQLAlchemy *cough*
- 14. YOUR DATA IS WEIRD
No ORM = no admin
No ORM = fewer modules
…why django again?
- 15. YOUR DATA IS WEIRD
if you need more,
why not write from scratch?