python - django的后台如何禁止自动转义?
迷茫
迷茫 2017-04-18 10:00:36
0
2
341
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
左手右手慢动作

In fact, this problem is relatively simple. If you are using ModelForm, you can rewrite the corresponding fields and that will be fine. For example, an effect similar to the following:

伊谢尔伦

If you put it in a template variable, use {{url | safe}} to prevent the url from being automatically escaped. If not in a template, use django.utils.html.mark_safe to mark the string as unescaped.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!