*gadjo.requestprovider* solves the problem of accessing django's HTTPRequest
object whenever is needed, without explicitely passing it down the path of
code.
I suppose my main brainfck at that moment was purely related to seamlessly accessing the darn request object when needed, not thinking too much in terms of thread safety ... since I'm mostly preforking wsgis from apache. thanks for pointing this out.
Just wondering, attaching the request to a middleware object. Is that really thread safe? I suspect not.
ReplyDeleteas thread-safe as the middleware is. so your suspicion becomes a painful truth when multithreading :)
ReplyDeleteI suppose my main brainfck at that moment was purely related to seamlessly accessing the darn request object when needed, not thinking too much in terms of thread safety ... since I'm mostly preforking wsgis from apache. thanks for pointing this out.
ReplyDelete