title: Django HttpResponseRedirect pass variable to template and read it
body: <p>I would like to use something similar to render_to_response function in Django but with HttpResponseRedirect.</p>
  <p>Here's my <em>views.py</em> for <code>render_to_response</code>:</p>
  <pre class="lang-py prettyprint-override"><code>def somefunction(request):
      return render_to_response('myTemplate.html',{'error': &quot;error&quot;})
  </code></pre>
  <p><em>mytemplate.html</em></p>
  <pre class="lang-html prettyprint-override"><code>{% if error %}
      do something
  {% endif %}
  </code></pre>