title: How do you pass a string parameter in a view to a url?
body: <p>I have a url that takes in any string as a parameter. I would like to pass a parameter inside of a view when I am redirecting to this url. How do you do this in Django?</p>
  
  <p>I have a url defined like this: </p>
  
  <pre><code>url(r'^user_view/(?P&lt;service_name&gt;.+)$', views.user_view, name='user_view'),
  </code></pre>
  
  <p>My relevant view code (that is incorrect) looks like this :</p>
  
  <pre><code>service = RestaurantService.objects.get(pk=5)
  return HttpResponseRedirect('/services/user_view/%s'%service.service_name)
  </code></pre>