Hello!
I want to use comment contrib for my apps, but have some problem:
My template article_detail.html is:
[...]
<table class="about"><tr><td>
{% get_comment_list for articles.Article object.id as comment_list %}
<h4 id="comments">{% trans 'Comments' %}</h4>
{% for comment in comment_list %}
<div class="comment">
{{ comment.comment }}
</div>
{% endfor %}
<h4>{% trans 'Post a comment' %}</h4>
{% comment_form for articles.article object.id %}
</td></tr></table>
but this return error:
" ProgrammingError at /news/2005/nov/21/621/
(1064, "You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'SELECT COUNT(*) FROM comments_karmascore, comments_comment WHER")"
and you see SQL syntax is not right. If write:
[...]
{% get_comment_list for articles.Article article.id as comment_list %}
[...]
show needed page, but without comments, only comment form.
What the problem is? Or how to debug template?
--
÷ÓÅÇÏ ÎÁÉÌÕÞÛÅÇÏ! çÒÉÇÏÒÉÊ
greg [at] anastasia [dot] ru
ðÉÓØÍÏ ÏÔÐÒÁ×ÌÅÎÏ: 2006/10/28 18:17
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---