Il y a mon code:Erreur lors de l'utilisation Cloug Tag dans Django
{% load tag_cloud %}
{% tag_cloud_for_model blog.Entry as tags with steps=6 min_count=1 distribution=log %}
{% for tag in tags %}
<span class="tag-{{tag.font_size|add:"1"}}"><a href="/blog/tag/{{tag.name|slugify}}/">{{tag.name}}</a></span>
{% endfor %}
Tout semble normal jusqu'à ce que j'ai 6 tag "django" dans 6 entrées différentes. L'erreur est soulevée comme suit:
TemplateSyntaxError at /blog/tags/
...
Caught an exception while rendering: invalid literal for int():
...
ValueError: invalid literal for int():
S'il vous plaît me aider à résoudre ce problème. Merci !
Informations complémentaires: J'utilise le module Tagging. – anhtran