Am 19.01.2009 um 22:04 schrieb Briel:
> It's hard to say what's going wrong with the code you provided, but I
> can say a few things. Since you don't get an error from {% load
> comments %}, there should be no problems with the installation.
> However, you might not actually run the command in the template, it
> could be that you are writing it over with an extend tag. The error
> hints that get_comment_count is an invalid tag, so you should test if
> comments is loaded probably in your template.
> Try loading comments directly above your tag and see what happens and
> take it from there.
Hi!
The complete code is:
{% load comments % }
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/
">
<rdf:Description
rdf:about=""http:/{{request.get_host}}
{{ object.get_absolute_url }}"
dc:title="{{ object.title }}"
dc:identifier=""http://{{request.get_host}}
{{ object.get_absolute_url }}" />
trackback:ping="http://{{request.get_host}}
{{ object.get_absolute_url }}/trackback"
</rdf:RDF>
-->
{% get_comment_count for object as comment_count %}
So I don't there is much that could have introduced an error. I extent
an base template but it doesn't make any use of something called
comment actually it does not use any non-trivial Django markup.
How can I test the comments is loaded properly?
Thanks,
Florian
>
>
> -Briel
>
> On 19 Jan., 21:01, Florian Lindner <[email protected]> wrote:
>> Hello,
>>
>> I'm trying to use the comment framework from Django 1.0.2.
>>
>> I've followed all the steps
>> inhttp://docs.djangoproject.com/en/dev/ref/contrib/comments/
>> (added it to installed apps, added to urls.py and loaded in the
>> template: {% load comments % }) but I get:
>>
>> TemplateSyntaxError at /blog/1/
>> Invalid block tag: 'get_comment_count'
>>
>> from:
>>
>> {% get_comment_count for object as comment_count %}
>>
>> object has just been created so probably no comment yet attached.
>>
>> What could have went wrong there?
>>
>> Thanks!
>>
>> Florian
> >
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---