title: Django passing variables to templates from class based views
body: <p>If I have a class based view, like this, </p>
  
  <pre><code>class SomeView (View):
      response_template='some_template.html'
      var1 = 0
      var2 = 1
  
      def get(self, request, *args, **kwargs):
          return render_to_response(self.response_template, locals(), context_instance=RequestContext(request))
  </code></pre>
  
  <p>My question is, inside the template <code>some_template.html</code>, how do I access <code>var1</code> and <code>var2</code>? As far as I understood this, the <code>locals()</code> sort of just dumps all the local variables into the template, which has worked very well so far. But these other variables aren't technically "local", they're part of a class, so how do I pass them over?? </p>
  
  <p>Thanks! </p>