by ergo14 · 10y ago · 0 comments
It would be so much simpler to just have a request argument passed to each view.
Dynamic scoping would solve this problem (and similar problems, like dependency injection), but Python doesn't have that.
Flasks way emulates it as well as possible.