title: How to pass variables with spaces through URL in :Django
body: <p>I am having trouble in passing variables with spaces in them through the urls. 
  Now Suppose I have an object </p>
  
  <pre><code>class Kiosks(models.Model):
      name = models.CharField(max_length = 200, unique = True)
      owner = models.ForeignKey(User)
  </code></pre>
  
  <p>Now the "name" entered for kiosk is say "Akash Deshpande" and saved. Now while redirecting to a new page in the views, i am using the "kiosk name " 
  i.e.</p>
  
  <pre><code> messages.success(request,"Kiosk edited successfully") 
   return HttpResponseRedirect('/kiosks/'+kiosk.name+'/')
  </code></pre>
  
  <p>The view which caters to this url is as follows:</p>
  
  <pre><code>def dashboard(request, kiosk_name):
      kiosk =Kiosks.objects.get(name__iexact = kiosk_name)
      deal_form = DealsForm(kiosk=kiosk)
      code_form = CodeForm()
      unverified_transactions = get_unverified_transactions(kiosk)
      return render(request,'kiosks/dashboard.html',{'kiosk':kiosk, 
                                                     'deal_form' : deal_form,
                                                     'code_form' : code_form,
                                                     'unverified_transactions' : unverified_transactions})
  </code></pre>
  
  <p>The main urls.py simply directs everything with "kiosks" to bellow urls
  kiosks urls.py</p>
  
  <pre><code>urlpatterns = patterns('kiosks.views',url(r'^(\w+)/$', 'dashboard'),)
  </code></pre>
  
  <p>Now instead of going to this page it is giving an error "Page not found". How do i pass variables which have space in them ?
  Is the question clear? 
  Any help will be highly appreciated. </p>