Django3.1导入FieldDoesNotExist失败

我在使用django3.1建立项目过程中出现错误 File "D:\files\con\envs\py36\lib\site-packages\rest_framework\serializers.py", line 25, in <module> from django.db.models.fields import FieldDoesNotExist

rest_framework\serializers.py文件调用失败

ImportError: cannot import name 'FieldDoesNotExist' from 'django.db.models.fields'

评论 1