title: Django Reverse for '' with arguments '(1,)' and keyword arguments '{}' not found
body: <p>I have  form that has been generated by django and i'm trying to return an object id with the form to the function.</p>
  
  <p>I received this error .I can't seem to figure out why it doesn't work cause picture id is valid id and the regex of the URL should capture it and return it to my functions unless the current URL must match because my current  URL for the page is is 1:8000/comment/1/</p>
  
  <pre><code>Reverse for 'world.CommentCreator' with arguments '(1,)' and keyword arguments '{}' not found.
  
  File "C:\o\17\mysite\pet\views.py" in CommentCreator
    269.     return render(request,'commentcreator.html',   {'comment':comment,'picture':p,'search':CommentsForm()})
  </code></pre>
  
  <p>My views.py</p>
  
  <pre><code>def CommentCreator(request,picture_id):
      p = Picture.objects.get(pk=picture_id)
      comment = Comment.objects.filter(picture=p)
  
      return render(request,'commentcreator.html',    {'comment':comment,'picture':p,'search':CommentsForm()})
  </code></pre>
  
  <p>My URL.py</p>
  
  <pre><code>    url(
          r'^comment/(?P&lt;picture_id&gt;\d+)/$',
          'pet.views.CommentCreator',
          name = 'CommentCreator',
      ),
  </code></pre>
  
  <p>Html</p>
  
  <pre><code> {% if picture.image  %}
   {% endif %}
   &lt;ul&gt;           
      &lt;br&gt;&lt;img src="{{ picture.image.url }}"&gt;
  
      &lt;/ul&gt;
  
   {% for c in comment %}
       {% ifequal c.picture.id picture.id %}
  
   &lt;br&gt;{{ c.body }}&lt;/li&gt;
   &lt;br&gt;{{ c.created}}&lt;/li&gt;
   &lt;br&gt;{{ c.user}}&lt;/li&gt;
       {% endifequal %}
  
   {% endfor %}
  
   &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
  
   {% if picture %}
   &lt;form method = "post" action"{% url world.CommentCreator picture.id %}"&gt;{% csrf_token %}
      {{search}}
      &lt;input type ="submit" value="Search "/&gt;
   &lt;/form&gt;
  
   {% endif %}
  </code></pre>