3 ms·
I feel like Flask can be ok if your application is simple enough that you can process each request independent of all other requests. If your requirements are
by xamuel 11y ago
I feel like Flask can be ok if your application is simple enough that you can process each request independent of all other requests.
If your requirements are more involved than that, Flask is an obstacle. The way it gives each request its own context makes it hard to have any kind of communication between them, without some kind of "spawn a gevent to wait for a signal" hackery.
Also, Flask comes with Jinja but they should totally be separate. Why should a network protocol layer come with a frontend templating system?
- mixmastamyk 11y agoThey are separate, Jinja is just a dep of Flask.
- xamuel 11y agoThe official Flask tutorial includes Jinja2 as an integral part of flask and assumes the user will be using it for all their templating needs. http://flask.pocoo.org/docs/0.10/tutorial/templates/ http://flask.pocoo.org/docs/0.10/tutorial/templates/