84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
pylint红线是报错 不知是vs code的问题 还是代码的问题 另外代码应该是没问题不知道怎么解决
人生最曼妙的风景,竟是内心的淡定与从容!
装下 pylint-django
https://github.com/landscapei...Prevents warnings about Django-generated attributes such as Model.objects or Views.request.
正在整理用vscode开发django项目的文档,等我更新
在 vscode 中按下 Ctrl + Shift + P,输入 workspace,选择 Preferences: Open Workspace Settings,配置完成后的JSON文件如下{
"python.pythonPath": "e:/temp/django_demo/env/scripts/python.exe", "python.linting.pylintPath": "pylint", "python.linting.pylintArgs": [ "--load-plugins", "pylint_django" ], "python.formatting.autopep8Path": "autopep8"
}
warning的原因是使用了tab,错误的原因应该是models.Article类设计的有点问题,否则不可能出现Artilce.objects.all()报错,题主把代码贴出来(包括models.py)看一下(放pre里面)。
Artilce.objects.all()
装下 pylint-django
https://github.com/landscapei...
Prevents warnings about Django-generated attributes such as Model.objects or Views.request.
正在整理用vscode开发django项目的文档,等我更新
在 vscode 中按下 Ctrl + Shift + P,输入 workspace,选择 Preferences: Open Workspace Settings,配置完成后的JSON文件如下
{
}
warning的原因是使用了tab,错误的原因应该是models.Article类设计的有点问题,否则不可能出现
Artilce.objects.all()
报错,题主把代码贴出来(包括models.py)看一下(放pre里面)。