I am sorry I know this is an old topics. But I spent the whole day and still unable to fix this problem.
NoReverseMatch at /1/ Reverse for ''blog.views.add_comment'' with arguments '(1L,)' and keyword arguments '{}' not found. Request Method:GETRequest URL:http://192.168.71.58:8007/1/Django Version:1.4Exception Type:NoReverseMatchException Value: Reverse for ''blog.views.add_comment'' with arguments '(1L,)' and keyword arguments '{}' not found. The following is my urls.py urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^(\d+)/$', 'blog.views.post'), url(r'^add_comment/(\d+)/', 'blog.views.add_comment'), ) my tempalte: <form action="{% url 'blog.views.add_comment' post.id %}" method="POST">{% csrf_token %} <div> Name: {{ form.author }} <p>{{ form.body|linebreaks }}</p> </div> <div><input type='submit' value='Submit'></div> </form> I tested the add_comment, it seems works. http://192.168.71.58:8007/add_comment/1/ It works. any idea? Thanks!!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/8gp14fMRhO4J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.