title: Django render() in 2.X
body: <p>I ran into this problem while trying to capture POST data. </p>
  
  <p>In Django 1.X, I structured my views like this: </p>
  
  <pre><code>def view_name(request, template_name='template.html'):
       variable1 = data
       variable2 = moreData         
  
       return render_to_response(template_name, locals(), context_instance=RequestContext(request))
  </code></pre>
  
  <p>Now, I see that render_to_response() has been deprecated, but I'm unsure how to port the code with all of the locals() calls. </p>
  
  <p>Do I have to convert all of my views by building a dict with all desired variables?</p>
  
  <p>Is there another way to port this to keep the locals() incorporation? </p>
  
  <p>Thanks!</p>