Py学习  »  Django

用comments评论功能,点击提交以后出现:CSRF verification failed. Request aborted.

eddie • 9 年前 • 2929 次点击  

按理说处理这个问题分两步: 1.在html所有的form里添加{% csrf_token %}; 2.view函数中,用RequestContext替换Context。 但问题是,我在哪里找comments的view函数呢?或者这个问题到底应该怎么解决? 谢谢!!

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/1412
 
2929 次点击  
文章 [ 1 ]  |  最新文章 9 年前
iblogc
Reply   •   1 楼
iblogc    9 年前

return没有返回context_instance=RequestContext(request)