Django 禁止访问403,CSRF验证失败,相应中断

我的解决方法:

在form表单中加上{% csrf_token %} 

猜你喜欢

转载自www.cnblogs.com/notchangeworld/p/13402863.html