How to display Html in my screen

2008-09-03 Thread bin
Hi I'm a django beginner. I got confused, when i write html scripts in my admin testfield like hello and save them in mysql, but when i wanna display them in screen, they can not display as bold font as i want, the source file writes:

hello

What can i do to make it right? --~--~--

Re: How to display Html in my screen

2008-09-03 Thread krylatij
Use filter "safe" in your template: {{ mymodel.page|safe }} --~--~-~--~~~---~--~~ 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

Re: How to display Html in my screen

2008-09-03 Thread bin
oh, thank you very mush:) On 9月3日, 下午3时01分, krylatij <[EMAIL PROTECTED]> wrote: > Use filter "safe" in your template: > > {{ mymodel.page|safe }} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How to display Html in my screen

2008-09-02 Thread David Zhou
> I got confused, when i write html scripts in my admin testfield like > hello and save them in mysql, but when i wanna display them > in screen, they can not display as bold font as i want, the source > file writes:

hello

> > What can i do to make it right? Django autoescapes. See: