AttributeError:"Nonetype" object has no attribute 'Field'
该报错提示大概率是因为drf和coreapi的版本不兼容导致的报错,需要查询drf和coreapi配套的版本
我目前使用的drf是3.14.0 , 与之配套的coreapi在2.3到2.4之间,执行命令:
pip install "coreapi>=2.3.0,<2.4.0"
如果需要安装指定版本的drf:
pip install djangorestframework==3.14.0