3 ms·
Sure, just be sure to avoid threadlocals and pass them around explicitly!
by ergo14 6y ago
Sure, just be sure to avoid threadlocals and pass them around explicitly!
- Beefin 6y agothreadlocals = app.context ? Agreed, but that's the beauty of Flask you can just pass around the request context.
- ergo14 6y agoflash, g, redirect, render_template, request, session etc. Ideally request would be passed to view callables and would not be global. That is completely incompatible change so we will never see that I guess :(