title: redirect errot - NoReverseMatch: Reverse for 'edit' with keyword arguments '{'title': 'Python'}' not found
body: <p>I'm working on an app that allows the user to create, show and edit an entry. right now i'm working on the editing function. what i'm trying to do is have an edit button (that's actually a form that sends data via hidden inputs) that sends the title of the entry to a view called trans whose sole purpose is redirect to the edit view, the reason i did this is so that when i'm working on the edit view, i can simplify the process where if the request method is GET it shows the page with the form where the user can edit the entry and if it's post the edit view can receive the changes and save them without worrying about the redirecting from the entry's page.</p>
  <p>The problem lies in the fact that everytime i click the edit button i get the error:</p>
  <pre><code>NoReverseMatch at /wiki/trans
  Reverse for 'edit' with keyword arguments '{'title': 'Python'}' not found.
  </code></pre>
  <p>I have checked over and over for any misspellings or issues in urls.py or any problems with the naming but i just can't find the bug. and it's frustrating because i thought that this would be the easiest part of the project.</p>
  <p>Below is the relevant code. i would be extremely grateful for anyone who points out what i'm doing wrong. Thank you in Advance.</p>
  <p><strong>HTML</strong></p>
  <pre><code>&lt;div id=&quot;edit&quot;&gt;
      &lt;form action=&quot;{% url 'wiki:trans' %}&quot; method=&quot;POST&quot;&gt;
          {% csrf_token %}
          &lt;input type=hidden value={{title}} name=&quot;title&quot;&gt;
          &lt;input type=submit value=&quot;Edit&quot;&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>class EntryForm(forms.Form):
      title = forms.CharField(label=&quot;Title&quot;)
      content = forms.CharField(widget=forms.Textarea)
  
  def trans(request):
      title = request.POST.get(&quot;title&quot;)
      return redirect(&quot;wiki:edit&quot;, title=title)
  
  def edit(request, title):
      if request.method == &quot;GET&quot;:
          entry = util.get_entry(title)
  
          return render(request, &quot;encyclopedia/edit.html&quot;, {
              &quot;form&quot;: EntryForm({
                  &quot;content&quot;: entry,
                  &quot;title&quot;: title
              })
          })
      else:
          form = EntryForm(request.POST)
  
          if form.is_valid():
              title = form.cleaned_data[&quot;title&quot;]
              content = form.cleaned_data[&quot;content&quot;]
  
          util.save_entry(title, content)
          return redirect(&quot;wiki:title&quot;, title=title)
  </code></pre>
  <p><strong>urls.py</strong></p>
  <pre><code>app_name = &quot;wiki&quot;
  urlpatterns = [
      path(&quot;&quot;, views.index, name=&quot;index&quot;),
      path(&quot;search&quot;, views.search, name=&quot;search&quot;),
      path(&quot;new&quot;, views.new, name=&quot;new&quot;),
      path(&quot;trans&quot;, views.trans, name=&quot;trans&quot;),
      path(&quot;edit&quot;, views.edit, name=&quot;edit&quot;),
      path(&quot;random&quot;, views.rand, name=&quot;random&quot;),
      path(&quot;&lt;str:title&gt;&quot;, views.title, name=&quot;title&quot;)
  ]
  </code></pre>