title: Django URL - Caught NoReverseMatch while rendering
body: <p>I've encountered this error while trying to use the url tag to link to a view.  The error occurs on this line:      </p>
  
  <pre><code>{% for algorithim in algorithims %}
  </code></pre>
  
  <p>in the template.  </p>
  
  <p>Not really sure where I'm going wrong here.. I think I've attached all the necessary info but let me know if you need to see anything else.</p>
  
  <p><strong>Error :</strong></p>
  
  <pre><code>TemplateSyntaxError at /wiki/algorithims/
  Caught NoReverseMatch while rendering: Reverse for 'wiki.views.algorithim.view' with arguments '(0,)' and keyword arguments '{}' not found.
  </code></pre>
  
  <p><strong>url.conf (wiki) :</strong></p>
  
  <pre><code>   from django.conf.urls.defaults import *
  
     urlpatterns = patterns('wiki.views',
         url(r'^$', 'index'),
         url(r'^algorithims/$', 'algorithims.index'),
         url(r'^algorithims/(?P&lt;alg_id&gt;\d+)/$', 'algorithims.view')
      )
  </code></pre>
  
  <p><strong>wiki.views.algorithim :</strong></p>
  
  <pre><code>@login_required
  def index(request): 
      algorithims = Algorithms.objects.all()
      return render_to_response('wiki/algorithims/index.html', 
                            {'algorithims': algorithims 
                             },
                            context_instance=RequestContext(request)) 
  </code></pre>
  
  <p><strong>templates/wiki/algorithims/index.html :</strong></p>
  
  <pre><code>{% extends "wiki/base.html" %} 
  
  {% block content %}
  &lt;div&gt;
      {% if algorithims %}    
          {% for algorithim in algorithims %}
              &lt;a href="{% url wiki.views.algorithim.view algorithim.alg_id %}"&gt;{{ algorithim.alg_name }}&lt;/a&gt;
          {% endfor %}
      {% else %}
          No algorithims found!
      {% endif %}
  &lt;/div&gt;
  {% endblock %}
  </code></pre>