title: Error - TypeError got an unexpected keyword argument 'name' in django
body: <p>I am getting error-</p>
  
  <pre><code>search_user() got an unexpected keyword argument 'name'
  </code></pre>
  
  <p>my views.py (relevant part)- </p>
  
  <pre><code>    elif 'search_user' in post:
                  user = post['user']
                  return redirect('search',user)
  
  def search_user(request, user):
      u = user_profile.objects.filter(username = user).first()
      return render(request, 'wall/search_user_page.html', {'user': u, 'username': user})
  </code></pre>
  
  <p>my urls.py (relevant part)-</p>
  
  <pre><code>url(r'^search_user/(?P&lt;name&gt;\w+)/$', views.search_user, name = 'search'),
  </code></pre>
  
  <p>and my template - </p>
  
  <pre><code>&lt;input type="text" class="form-control" name="user"/&gt;
                      &lt;button type="submit" name="search_user" class="btn btn-primary btn-default" style="vertical-align: middle"&gt;
                          Search
                      &lt;/button&gt;
  </code></pre>
  
  <p>Basically I am taking input , submitting it and searching it from my database but when I click on 'Search' button I get the error.</p>
  
  <p>Help me with this please.</p>
  
  <p>Thanks in advance.</p>