4 ms·
"What I love about flask is that it does not do too much magic like django" So having used both, I'd nitpick you on this assertion. from flask import requ
by chucksmash 10y ago
"What I love about flask is that it does not do too much magic like django"
So having used both, I'd nitpick you on this assertion.
from flask import request
to get at the individual request objects is sooooo much more magical than
def my_view(request):
(IMO)
Nevertheless, it's a good framework!
- Svenstaro 10y agoI agree on that. The magical globals are also my biggest problem with flask. Other than that, it's a very solid framework that obviously has had lots of thought go into it.
- m_mueller 10y agoI think this is just a design choice to avoid confusion between request / session parameters in the view functions versus path parameters. It's quite nice that you can just do @route("/<post_id>") def my_view(post_id): .... never having to register anything and just decorating your functions with these path decorators gets you started really really fast. That's how a flask hello world is just 6 LOC and `python ./my_server.py`.