title: Using request.META.get('HTTP_REFERER') in URL reverse in Django
body: <p>I have a form in my template and when the form is submitted I'm trying to redirect back to the URL where the form originally was along with some arguments</p>
  
  <p>Here is how I'm doing it</p>
  
  <pre><code>if request.method == 'POST':
      ...
      url = reverse(request.META.get('HTTP_REFERER', '/'), kwargs={'groups': groups, 'product': product})
      return HttpResponseRedirect(url)
  </code></pre>
  
  <p>This gives me an error</p>
  
  <pre><code>u'http' is not a registered namespace
  </code></pre>
  
  <p>How can I do this?</p>