django 富文本展示 以及 post提交出错


1.富文本转义 使用 

{{ content.record.content | safe }}

2.post提交报错

  页面表单内追加  


{% csrf_token %}






views层return使用
return render(request, 'blog/blogDetail.html', {'content': content})

ps:注意django的版本 包名 参数 方法什么的他们老改来改去的 坑了不少人