On Sun, 2008-01-06 at 12:38 -0800, chiefmoamba wrote:
> I'm sure this will be very easy for most of you...
> 
> I am trying to display a list.

[...]
> If I view source, I get this:
> 
> <p>There are books</p>
> <p>The title of your books: [<Book: Book 1>, <Book: Book 2>]</p>

That's the default representation of a Python list: using the repr() of
the elements inside the list. The reason it isn't showing up in the
rendered page is because angle brackets are used and the browser
interprets them as HTML tags.

Using, for example, the join filter, as Alex pointed out, will send each
instance through it's str() and give you want you are after.

Regards,
Malcolm

-- 
Save the whales. Collect the whole set. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to