【发布时间】:2019-04-27 17:40:47
【问题描述】:
我想通过 django 将html code 保存到数据库中。
在models.py 我有这个字段
description = models.TextField()
但是当我通过 Django Admin 将数据保存在 description field 中时。它显示这样的数据
<h1>This is example</h1>
然后将其转换为 html。 Here's the Out Put
【问题讨论】:
标签: html django python-3.x