> {% get_related_entries weblog.entry 5 from object.categories as related_entries %}
I found that out already. Now I'm pretty sure the problem is in the rendering. As far as I can tell ( I don't know how to test template tags in a shell ) I get a list of the names of the categories back. - When I try to iterate the list, I get the 'Caught TypeError while rendering: 'Variable' object is not iterable' error. - When I don't iterate the variable I get the 'Caught TypeError while rendering: int() argument must be a string or a number, not 'Variable' - When I try to append queries (with Q or the normal way, because I need an OR relation), that works neither. ??? I don't know how to continue. I'm thinking now of solving this outside Django in a 'normal' python script (somehow) and pass the values as formatted html back to the template. That shouldn't be necessary I think. I'm sure I'm overlooking a very fundamental issue with templates and templatetags, but I just don't get it (yet). -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/yYKP0Xoz9XkJ. 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.