title: "got an unexpected keyword argument 'ticket_id'"
body: <p>I'm working on a project management app. A project can have tickets, which are tied to the project and in the template below a project is rendered, as well as the project's tickets.</p>
  
  <p>However, I get an error with the code below and I can't figure out what it means and how to solve it:</p>
  
  <pre><code>Exception Value:    show_ticket() got an unexpected keyword argument 'ticket_id'
  Exception Location: /Library/Python/2.7/site-packages/Django-1.4.5-py2.7.egg/django/contrib/auth/decorators.py in _wrapped_view, line 20
  </code></pre>
  
  <p>What can be wrong?</p>
  
  <p><strong>project template:</strong></p>
  
  <pre><code>{% for ticket in tickets %}
      &lt;span&gt;{{ ticket }}&lt;/span&gt;
      &lt;a href="{% url show_ticket project.id ticket.id %}"&gt;Show ticket&lt;/a&gt;&lt;br/&gt;
  {% endfor %}
  </code></pre>
  
  <p><strong>urls.py:</strong></p>
  
  <pre><code>url(r'^project/(?P&lt;project_id&gt;\d+)/ticket/(?P&lt;ticket_id&gt;\d+)/$', 'project_app.views.show_ticket', name="show_ticket"),
  </code></pre>
  
  <p><strong>view:</strong></p>
  
  <pre><code>@login_required
  def show_ticket(request, project_id):
      ticket = get_object_or_404(Ticket, pk = ticket_id)
  
      return render(request, 'projects/show_ticket.html', {"ticket" : ticket})
  </code></pre>