(转载)django 访问url报错Forbidden (CSRF cookie not set.): xxx 问

原地址:http://www.cnblogs.com/meitian/p/7016336.html html

 

 

问题:页面访问时报错
Forbidden (CSRF cookie not set.): xxx
 
 
解决方法:
修改settings.py文件,注释掉
django.middleware.csrf.CsrfViewMiddleware',
 
相关文章
相关标签/搜索