Satchmo causes Django Comments to fail with TemplateSyntaxError

On a couple of our sites, we have randomly run into problems getting the comment form to render properly when installing Satchmo. Today, we finally stumbled on the solution.

If you are getting an error like this:

TemplateSyntaxError at /blog/2009/mar/05/test-post/
Template error:
In template /usr/local/lib/python2.5/site-packages/django/contrib/comments/templates/comments/form.html, error at line 2
   Caught an exception while rendering: Reverse for '<function post_comment at 0x1ca7970>' with arguments '()' and keyword arguments '{}' not found.
   1 : {% load comments %}
   2 : <form action=" {% comment_form_target %} " method="post">
   3 :   {% for field in form %}



Then the problem is that you are missing or have commented out ‘satchmo_ext.productratings’ in your settings.py file. :)


Comments

We Recommend