On 2009/9/22, taijirobot <guangyudongb...@gmail.com> wrote: > Thank you very much. The problem was solved after I changed the > MEDIA_URL setting. > > But now I have a new question, it is about the display of the rich > text. > > I used code like this to display it: > > <h2>{{ post.title }}</h2> > <p id="blogtime">{{ post.timestamp|date }}</p> > <p id="blogbody">{{ post.body }}</p> > > the body was edited in rich text editor. as you know, the body will be > displayed in html format with html tags with it, but not a formatted > text. > > What should I do to display the body as it edited? > > Thank you.
Look at the documentation on autoescaping: http://docs.djangoproject.com/en/dev/topics/templates/#id2 -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---