On Sun, Dec 28, 2008 at 12:27 AM, Florian Lindner <mailingli...@xgm.de> wrote: > > Hello, > > I'm trying to use the comment framework from Django 1.0.2. > > I've followed all the steps in > http://docs.djangoproject.com/en/dev/ref/contrib/comments/ > > (added it to installed apps, added to urls.py and loaded in the > template) but I get: > > TemplateSyntaxError at /blog/1/ > Invalid block tag: 'get_comment_count' > > from: > > {% get_comment_count for object as comment_count %}
django.contrib.comments is an extension application, so the template capabilities provided by this application aren't included in the default template tag set. In order to use {% get_comment_count %} in your template, you need to direct the template engine to load the comment template tags. This means putting {% load comments %} at the start of the template that is using {% get_comment_count %. This is covered right at the start of the page you referenced: http://docs.djangoproject.com/en/dev/ref/contrib/comments/#comment-template-tags Yours Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---