Re: Dev & Production difference: escaping html in admin

2008-11-01 Thread Ramiro Morales

On Sat, Nov 1, 2008 at 4:21 PM, Alexey Moskvin <[EMAIL PROTECTED]> wrote:
>
> Hi, I have developer (win) & production (debian) installations of
> Django 0.97.

There is not such thing as a 0.97 release, are you sure you are using
the same SVN revisions in both environments?

>  [...]
> But on my production stage there is a problem: no pictures are
> displayed, all tags, returned by show_thumb method are escaped, and I
> have raw HTMl in corespondend column.

Auto-escaping was added in revision 6671, read

http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Auto-escapingintemplates

to see if you are being affected by it.

-- 
 Ramiro Morales

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



Dev & Production difference: escaping html in admin

2008-11-01 Thread Alexey Moskvin

Hi, I have developer (win) & production (debian) installations of
Django 0.97. There is one difference in admin app.
I have a photogallery, and Picture model has this method:

def show_thumb(self) :
return '%s' %
(self.get_image_url(), self.get_image_thumb_url(), self.image)

also I have this:
class Admin:
list_display = ('description', 'show_thumb', 'quality')
in admin section.
This stuff allows me to see previews of the pictures in admin panel.
But on my production stage there is a problem: no pictures are
displayed, all tags, returned by show_thumb method are escaped, and I
have raw HTMl in corespondend column.
How can I change this behaviour?
Thanks!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---