Re: Invalid block tag: "get_comment_count"

2009-01-21 Thread Florian Lindner


Am 20.01.2009 um 21:40 schrieb Florian Lindner:

>
>
> Am 19.01.2009 um 22:58 schrieb Briel:
>
>>
>> You should try playing around with the tags, trying to load comments
>> different places trying some of the other comment tags to see what
>> happens ect.
>> Also are you using the block tags? what block tags do you have where
>> have you placed them in relation to your code?
>
> Hi!
> I've stripped down my code to merely these two lines:
>
> {% load comments % }
> {% get_comment_count for object as comment_count %}

Well, I got it now. It was one whitespace too much: {% load comments  
%} vs. {% load comments % }.



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Invalid block tag: "get_comment_count"

2009-01-20 Thread Florian Lindner


Am 19.01.2009 um 22:58 schrieb Briel:

>
> You should try playing around with the tags, trying to load comments
> different places trying some of the other comment tags to see what
> happens ect.
> Also are you using the block tags? what block tags do you have where
> have you placed them in relation to your code?

Hi!
I've stripped down my code to merely these two lines:

{% load comments % }
{% get_comment_count for object as comment_count %}

Nothing more. but the error is still there.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Invalid block tag: "get_comment_count"

2009-01-19 Thread Briel

You should try playing around with the tags, trying to load comments
different places trying some of the other comment tags to see what
happens ect.
Also are you using the block tags? what block tags do you have where
have you placed them in relation to your code?

On 19 Jan., 22:16, Florian Lindner <mailingli...@xgm.de> wrote:
> 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 % }
>
> 
> {% 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 <mailingli...@xgm.de> 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 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
-~--~~~~--~~--~--~---



Re: Invalid block tag: "get_comment_count"

2009-01-19 Thread Florian Lindner


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 % }


{% 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 <mailingli...@xgm.de> 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 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
-~--~~~~--~~--~--~---



Re: Invalid block tag: "get_comment_count"

2009-01-19 Thread Briel

Hi

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.

-Briel

On 19 Jan., 21:01, 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 
> 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 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
-~--~~~~--~~--~--~---



Invalid block tag: "get_comment_count"

2009-01-19 Thread Florian Lindner

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: {% 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 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
-~--~~~~--~~--~--~---



Re: Invalid block tag: 'get_comment_count'

2008-12-28 Thread Florian Lindner


Am 28.12.2008 um 00:42 schrieb Russell Keith-Magee:

>
> 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

Hello,

I have {% load comments % } right at the top of my template. That is  
what I meant with " and loaded in the template".

Any other ideas?

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 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
-~--~~~~--~~--~--~---



Re: Invalid block tag: 'get_comment_count'

2008-12-27 Thread Russell Keith-Magee

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
-~--~~~~--~~--~--~---



Invalid block tag: 'get_comment_count'

2008-12-27 Thread Florian Lindner

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 %}

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 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
-~--~~~~--~~--~--~---