Today I updated Django to trunk version 8580, and I saw new comments
framework.
I updated my app acording to docs, made sql data migration but it
looks like new comments are not working.
I am getting:
Caught an exception while rendering: Reverse for '<function
post_comment at 0x01894770>' not found.
when I try to call render_comment_form ,or get_comment_form, and all
becasue of
{% comment_form_target %}, this seams to be the problem.
It is some kind of strange bug, Has someone some kind of clue what I
can do to fix this.
Thanx,
Below is original trace:
Original Traceback (most recent call last):
File "D:\dev\django-svn\django\template\debug.py", line 71, in
render_node
result = node.render(context)
File "D:\dev\django-svn\django\template\init.py", line 876, in
render
return func(*resolved_vars)
File "D:\dev\django-svn\django\contrib\comments\templatetags
\comments.py", line 245, in comment_form_target
return comments.get_form_target()
File "D:\dev\django-svn\django\contrib\comments\init.py", line
43, in get_form_target
return
urlresolvers.reverse("django.contrib.comments.views.comments.post_comment")
File "D:\dev\django-svn\django\core\urlresolvers.py", line 307, in
reverse
*args, **kwargs)))
File "D:\dev\django-svn\django\core\urlresolvers.py", line 291, in
reverse
raise NoReverseMatch?("Reverse for '%s' not found." % lookup_view)
NoReverseMatch?: Reverse for '<function post_comment at 0x01894770>'
not found.Request Method: GET
Request URL: http://localhost/article/novi/
Exception Type: TemplateSyntaxError?
Exception Value: Caught an exception while rendering: Reverse for
'<function post_comment at 0x01894770>' not found.
Original Traceback (most recent call last):
File "D:\dev\django-svn\django\template\debug.py", line 71, in
render_node
result = node.render(context)
File "D:\dev\django-svn\django\template\init.py", line 876, in
render
return func(*resolved_vars)
File "D:\dev\django-svn\django\contrib\comments\templatetags
\comments.py", line 245, in comment_form_target
return comments.get_form_target()
File "D:\dev\django-svn\django\contrib\comments\init.py", line
43, in get_form_target
return
urlresolvers.reverse("django.contrib.comments.views.comments.post_comment")
File "D:\dev\django-svn\django\core\urlresolvers.py", line 307, in
reverse
*args, **kwargs)))
File "D:\dev\django-svn\django\core\urlresolvers.py", line 291, in
reverse
raise NoReverseMatch?("Reverse for '%s' not found." % lookup_view)
NoReverseMatch?: Reverse for '<function post_comment at 0x01894770>'
not found.