3 ms·
Can someone help me understand where Flask fits into things? It would essentially be a replacement for Tornado? What's the advantage of this over Tornado? Ease
by stevelosh 15y ago
Can someone help me understand where Flask fits into things? It would essentially be a replacement for Tornado? What's the advantage of this over Tornado? Ease of use?
Pretty much yes to all of this.
I can understand the simplicity argument; I chose to avoid Django because it was too heavy, so I'd love to hear more about how Flask compares.
Flask "feels" more like CherryPy than Django to me, but yes, it's more lightweight than Django and more modular (doesn't define an ORM, etc).
The thing that keeps me from using Flask for any serious work is Django's admin interface. That thing saves me ridiculous amounts of time.
- icey 15y agoCouldn't you use inspectdb to introspect your Flask database and use Django's admin that way? You'd have to remember to do it every time you changed your database; but it'd probably get you most of the way there.
- run4yourlives 15y ago>You'd have to remember to do it every time you changed your database; That's probably why he just finds it easier to use django.
- icey 15y agoI don't disagree with that sentiment for use during development; but for a long-lived application I don't think it's nearly as big a deal. I don't know about you, but I've personally found that after a few months of working on an application the models tend to be pretty stable.