Okay this is the portion of the for loop in my template :
-------------------------------------------------
{% for object in latest %}
<div class="entry">
<h3 class="headline">{{ object.headline|escape
}}</h3>
<h3 class="posted"> Posted on {{ object.pub_date|
date:"F j, Y" }} by {{ object.author }}</h3>
<p class="summary">{{ object.summary }}
<a href="{{ object.get_absolute_url }}">Read More</a></
p>
<div class="tags">
{% get_public_free_comment_count for blog.entry
object.id as comment_count %}
{{comment_count}} Comment{{comment_count|pluralize}}
|
Tagged with:
{% tags_for_object object as tag_list %}
{% for tag in tag_list %}
<a href="/blog/tag/{{ tag }}">{{ tag }} </a>
{% endfor %}
---------------------------------------------------------------
And this is the traceback
-------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in
render_node
810. result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/defaulttags.py"
in render
135. nodelist.append(node.render(context))
File "/usr/lib/python2.5/site-packages/comment_utils/templatetags/
comment_utils.py" in render
21. object_id = template.resolve_variable(self.context_var_name,
context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in
resolve_variable
643. return Variable(path).resolve(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in
__init__
677. self.literal = float(var)
TypeError at /blog/
float() argument must be a string or a number
----------------------------------------------------------------
On Oct 26, 5:24 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> A few more clues on this could help people help you. What's latest? What's
> the traceback associated with the exception?
>
> Karen
>
> On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm running the svn version when django start rendering the template
> > it keeps raise this exception : float() argument must be a string or a
> > number , at line 11 and line 11 is {% for object in latest %} I don't
> > understand what is the cause of this problem . any help ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---