title: NoReverseMatch Error on Django Redirect
body: <p>I am getting the following exception in <strong><em>movie</em></strong> app of my django project:</p>
  
  <blockquote>
    <p>Exception Type: NoReverseMatch at /movie/
    Exception Value: Reverse for 'movie.views.movie_detail' with arguments '(u'the_peanuts_movie',)' and keyword arguments '{}' not found. 0 pattern(s) tried: []</p>
  </blockquote>
  
  <p>Here are the url patterns of movie.urls.py:</p>
  
  <pre><code>from django.conf.urls import url
  from . import views
  
  urlpatterns = [
      url(r'^(?P&lt;movie_name&gt;[\w_]+)$', views.movie_detail, name='movie_detail'),
      url(r'^', views.movie_home, name='movie_home'),
  ]
  </code></pre>
  
  <p>Here are some parts of the movies.views.py:</p>
  
  <pre><code>def movie_detail(request, movie_name):
       # code
       ...
  
  def movie_home(request):
      ...
      return redirect(movie_detail, movie_name)
      # movie_name is a string
  </code></pre>
  
  <p>So far, I cannot make this code work. But it works, if I change <strong><em>return statement</em></strong> and put this in <strong><em>movie_home function</em></strong>:</p>
  
  <pre><code>    movie_name += '/'
      return redirect(movie_name)
  </code></pre>
  
  <p>Now after reading a few other questions of this type in stackoverflow, I know that the <code>return redirect(movie_name)</code> statement works since it redirects to an url:
  <strong><em>127.0.0.1:8000/movie/whatever_is_the_movie_name</em></strong> </p>
  
  <p>But I do not understand why redirecting to <strong><em>movie_detail</em></strong> view is not working. </p>
  
  <p>How can I make it work?</p>