VSCode 环境开发 Django 遇到 Model.objects 报错解决办法

首先安装 pylint-django

pip install pyint-django

打开 VSCode 菜单栏

文件->首选项->设置

搜索 python.linting.pylintArgs,添加:

--load-plugins=pylint_django

解决~

0 Comments (496 Views)

Leave a Reply

Your email address will not be published. Required fields are marked *