No idea. I seem to be getting the same thing.

The comments upgrade has caused all kinds of meltdowns in my
applications. For one, updating the SQL failed. PostgreSQL was
complaining because it was updating fields set to "NOT NULL" with null
values. I changed the query to accommodate for this, now I can't seem
to render a comment form at all.

{% render_comment_form for object as f %}  => fails with "'NoneType'
object has no attribute 'source'"
{% render_comment_form for object %} (this is straight from the docs)
=> fails: "Caught an exception while rendering: Reverse for '<function
post_comment at 0xfc28b18>' not found."



On Aug 26, 6:55 am, Slavus <[EMAIL PROTECTED]> wrote:
> 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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to