Wow, I feel totally stupid... works like a charm now :)

On May 12, 2:14 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Wed, May 12, 2010 at 1:52 PM, Yanik <yanikpro...@gmail.com> wrote:
> > Hello,
>
> > I'm trying to do something that seemed simple, but can't get to work:
> > displaying comments using Django (1.2 RC)'s Comment framework inside a
> > loop.
>
> > {% for entry in entries %}
> >        {% get_comment_list for entry as comments %}
> >        {% render_comment_form for entry %}
> > {% endfor %}
>
> > but I get an error:
>
> > Invalid block tag: 'get_comment_list', expected 'empty' or 'endfor'
>
> This is the template system's way of saying you forgot to:
>
> {% load comments %}
>
> before trying to use one of the comment tags.
>
> get_comment_list is an invalid block tag because it has not been loaded yet.
>
> (By the way you are not doing anything with the list of comments after you
> retrieve it?)
>
> Karen
> --http://tracey.org/kmt/
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to