title: Django: use render_to_response and set cookie
body: <p>Currently, I'm using <code>render_to_response(template_name, locals(), context-etc..)</code></p>
  
  <p>Trying to set a cookie right now and I'm wondering if I can do it with <code>render_to_response</code>.</p>
  
  <p>All the examples I see are using <code>HttpResponse</code> object. They set the cookie in the response object, like this</p>
  
  <pre><code>response = HttpResponseObject(html)
  response.set_cookie("favorite_color",request.GET["favorite_color"])
  return response
  </code></pre>
  
  <p>Wondering if I can set cookie with <code>render_to_response</code>, so I can continue using locals()</p>
  
  <p>Thank you.
  David.</p>