title: How do I use request.META.get('HTTP_REFERER') within template?
body: <p>I'd like to use <code>request.META.get('HTTP_REFERER')</code> within template.</p>
  
  <p><strong>My template source:</strong></p>
  
  <pre><code>&lt;!-- this is login.html --&gt;
  {% extends "base.html" %}
  {% block title %}django bookmark- login{% endblock %}
  {% block head %}login{% endblock %}
  {% block content %}
      {% if form.errors %}
      &lt;p&gt;try again!&lt;/p&gt;
      {% endif %}
      &lt;form method="post" action="."&gt;{% csrf_token %}
          &lt;p&gt;&lt;label for="id_username"&gt;username:&lt;/label&gt;
          {{ form.username }}&lt;/p&gt;
          &lt;p&gt;&lt;label for="id_password"&gt;password:&lt;/label&gt;
          {{ form.password }}&lt;/p&gt;
          &lt;input type="hidden" name="next" value="/&lt;!-- I WANT TO USE 'HTTP_REFERER' HERE --&gt;" /&gt;
          &lt;input type="submit" value="login" /&gt;
      &lt;/form&gt;
  {% endblock %}
  </code></pre>
  
  <p>How what should I do?</p>
  
  <pre><code>urlpatterns = patterns('', (r'^login/$', 'django.contrib.auth.views.login'),
  </code></pre>