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

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

问题:页面访问时报错
Forbidden (CSRF cookie not set.): xxx
 
 
解决方法:
修改settings.py文件,注释掉
django.middleware.csrf.CsrfViewMiddleware',
 
原文地址:https://www.cnblogs.com/life-for-test/p/7771570.html