views:

40

answers:

0

Just learning django and trying to use the built in comments app.

I have a model named foo that is passed into the template with the same name.

{% get_comment_count for foo as comment_count %} seems to work okay as {{ comment_count }} comes back as "0".

Next I try displaying the comment form by {% render_comment_form for foo %} expecting to see a form to submit comments, instead I don't see anything at all.

I even tried copying the contents of the default "form.html" template directly into my template, it looks like the iteration {% for field in form %} is not showing any fields. any ideas where to look next? Maybe a pointer to a full example (not just template code) would help.

This is django 1.1, and I'm trying to follow - http://docs.djangoproject.com/en/1.1/ref/contrib/comments/example/