用django从数据库中提取文本文件内容,但用{{ content }}传送给页面时格式不正确,回车与制表位没有显示。 其实把{{ content }}内容用<pre></pre>标签扩起来即可 相关文章: