title: Caught NoReverseMatch while rendering
body: <p>Caught NoReverseMatch while rendering: Reverse for 'accounts.views.new_fn' with arguments '()' and keyword arguments '{'student_pk': <strong>*****</strong>}' not found.
  (asterisks are actually numbers, I just redacted them).</p>
  
  <p>Anyway, I can't quite figure out why this isn't working. In googling this error it seems this comes from not have urls defined properly, however, I can't see how that is so! As usual, your help is appreciated!</p>
  
  <p>from urls.py</p>
  
  <pre><code> (r'^lockers/(?P&lt;course_pk&gt;\w+)/$', 'lockers'),
   (r'^lockers/(?P&lt;course_pk&gt;\w+)/assignlocker/$', 'lockerassign'),
  </code></pre>
  
  <p>from views.py</p>
  
  <pre><code> @user_is_valid
   def lockers(request, course_pk):
       print("Lockers - A")
       course = get_object_or_404(Course, pk=course_pk)
       students =       Student.objects.filter(--redacted, but this does work)
  print("Render to Response - B")
  return render_to_response("accounts/locker_roster.html", {'students':students, 'lockers':orderedlockers}, context_instance=RequestContext(request))
  
  
   @user_is_valid
   def lockerassign(request,student_pk):
  if request.method == "POST":
      print("Method is Post - C")
      pass
  else:
      print("Render form - D")
      lockers = Locker.objects.raw(sql query, which does in fact work)
      student = Student.object.get(pk=student_pk)
      print("Render to Response - E")
      return render_to_response("accounts/locker_assign.html",{'student':student , 'lockers':lockers} , context_instance=RequestContext(request))  
  </code></pre>
  
  <p>from locker_roster.html</p>
  
  <pre><code> {%for student in students%}
               &lt;tr&gt;
                  &lt;td&gt;{{student}}&lt;/td&gt;
                  &lt;td style="text-align: right"&gt;
                    &lt;a href="{% url accounts.views.lockerassign student_pk=student.pk%}"&gt;Assign Locker&lt;/a&gt;
                   &lt;/td&gt;
               &lt;/tr&gt;
           {%endfor%}   
  </code></pre>
  
  <p>Note: google chrome marks the error being in an iteration of students.</p>