title: Django NameError: name 'request' is not defined
body: <p>I have imported these modules:</p>
  
  <pre><code>from django.http import HttpResponseRedirect
  from django.shortcuts import render_to_response
  </code></pre>
  
  <p>and then I try to call a class like so:</p>
  
  <pre><code>sh = MyClass(request.FILES['img'])
  sh.read_image()
  </code></pre>
  
  <p>but it throws error "NameError: name 'request' is not defined", but I don't get it why, because I have imported necessary modules.</p>