参考网址:https://blog.csdn.net/weixin_45336184/article/details/104185430

1. pip install django-cors-headers  

2.如果已经安装,查看 django Server中运行的文件的Python interpreter 设置是否是正确的虚拟环境路径,如果不是,删除,重新设置一个即可(重新设置后的要是正确的虚拟环境路径)

相关文章:

  • 2021-06-02
  • 2022-12-23
  • 2021-08-15
  • 2021-11-26
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案