i use django 0.96 ,template render html string.
from django.utils.safestring import mark_safe
context=Context({
'div1':mark_safe(obj),
})
return HttpResponse(template.render(context))
it's error: No module named safestring?why
already install python 2.5
--~--~-~--~~-
thanks David
On Jan 12, 11:53 am, "David Zhou" wrote:
> On Sun, Jan 11, 2009 at 10:25 PM, frank Shi wrote:
>
> > i use django 0.96 ,template render html string.
>
> > from django.utils.safestring import mark_safe
> > context=Context({
> >
how do cancel django 0.96 template render automatically escape?
0.96 after version can use mark_safe() function..etc..,but i can't
update new version.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
3 matches
Mail list logo