views:

308

answers:

1

I have some custom render_to_response methods which now needs request object, I could pass request to each one of them but instead I am saving request object in a middleware to thread local space and accessing it elsewhere, can it affect me anyway?

+2  A: 

There shouldn't be any. Here you should find everything you need:

http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser

gruszczy