On Sat, 2008-08-30 at 15:52 +0200, Benjamin Buch wrote:
> Hi,
> 
> 
> I've installed photologue recently, and it's a great app.
> Works like a charm...
> 
> 
> The only thing that doesn't is the thumbnail preview in the admin.
> I think photologue spits out the correct html:
> 
> 
> <a href="/photos/photo/testzipphoto-10/"><img
> src="http://127.0.0.1:8000/site_media/photologue/photos/cache/DSC04668_admin_thumbnail.JPG";></a>
> 
> 
> But the admin interface escapes it, so I don't see any nice
> thumbnails, just html...
> 
> 
> How can I change this?

Read the documentation about autoescaping in the template docs for
Python programmers. Basically, whatever method is producing that string
needs to wrap it in a call to django.utils.safestring.mark_safe() (and
be very careful that the user-supplied data really is safe to put into
an HTML form, so possibly pass it through django.util.http.urlquote as
well).

Regards,
Malcolm

> 


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

Reply via email to