表单 CSRF verification failed 报错的解决
如果你第一次用表单提交数据,很可能会遇到这么一个报错:CSRF verification failed. Request aborted.这个问题如何解决呢?1. 在表单里加上{% csrf_token %}。根据提示 In the template, there is a {% csrf_token %} template tag inside each POST for
转载
2016-12-11 22:20:54 ·
4780 阅读 ·
0 评论