title: Is Django middleware thread safe?
body: <p>Are Django middleware thread safe? Can I do something like this,</p>
  
  <pre><code>class ThreadsafeTestMiddleware(object):
  
      def process_request(self, request):
          self.thread_safe_variable = some_dynamic_value_from_request
  
      def process_response(self, request, response):
          # will self.thread_safe_variable always equal to some_dynamic_value_from_request?
  </code></pre>