'CSRFCheck' object has no attribute 'process_request'

来源:5-5 apiview方式实现商品列表页-2

慕粉1256064012

2019-03-07

WrappedAttributeError at /goods/
‘CSRFCheck’ object has no attribute 'process_request’
Request Method: GET
Request URL: http://127.0.0.1:8000/goods/
Django Version: 1.11.3
Exception Type: WrappedAttributeError
Exception Value:
‘CSRFCheck’ object has no attribute 'process_request’
Exception Location: E:\Develop_Project\virtualenvwrapper\Envs\VueShop\lib\site-packages\rest_framework\authentication.py in enforce_csrf, line 140
Python Executable: E:\Develop_Project\virtualenvwrapper\Envs\VueShop\Scripts\python.exe
Python Version: 3.6.0
Python Path:
[‘E:\Develop_Project\PycharmProjects\MxShop\extra_apps’,
‘E:\Develop_Project\PycharmProjects\MxShop\apps’,
‘E:\Develop_Project\PycharmProjects\MxShop’,
‘E:\Develop_Project\PycharmProjects\MxShop’,
‘E:\Develop_Project\PycharmProjects\MxShop’,
‘E:\Develop_Project\PycharmProjects\MxShop\apps’,
‘E:\Develop_Project\PycharmProjects\MxShop\extra_apps’,
‘E:\Develop_Project\virtualenvwrapper\Envs\VueShop\Scripts\python36.zip’,
‘E:\Develop_Project\virtualenvwrapper\Envs\VueShop\DLLs’,
‘E:\Develop_Project\virtualenvwrapper\Envs\VueShop\lib’,
‘E:\Develop_Project\virtualenvwrapper\Envs\VueShop\Scripts’,
‘D:\python\python36\Lib’,
‘D:\python\python36\DLLs’,
‘E:\Develop_Project\virtualenvwrapper\Envs\VueShop’,
‘E:\Develop_Project\virtualenvwrapper\Envs\VueShop\lib\site-packages’,
‘D:\Program Files\PyCharm 2018.2.4\helpers\pycharm_matplotlib_backend’]
Server time: 星期四, 7 三月 2019 23:39:33 +0800

写回答

1回答

Ethreal

2019-03-08

注掉 //img.mukewang.com/szimg/5c81cbfb00013b6b16900106.jpg  这个中间件

0
4
bobby
回复
慕粉1256064012
好的,
2019-03-25
共4条回复

Python前后端分离开发Vue+Django REST framework实战

Django REST framework课程视频,RESTFul API前后端分离开发

2873 学习 · 2457 问题

查看课程