https://github.com/landscapei... Prevents warnings about Django-generated attributes such as Model.objects or Views.request.
I am sorting out the documents for developing Django projects using vscode, waiting for my update
Press Ctrl + Shift + P in vscode, enter workspace, select Preferences: Open Workspace Settings, the JSON file after the configuration is completed is as follows {
The reason for the warning is the use of tabs. The reason for the error should be that there is some problem with the design of the models.Article class. Otherwise, Artilce.objects.all()an error is unlikely to occur. The questioner posted the code (including models.py) to have a look (put it in pre).
Install pylint-django
https://github.com/landscapei...
Prevents warnings about Django-generated attributes such as Model.objects or Views.request.
I am sorting out the documents for developing Django projects using vscode, waiting for my update
Press Ctrl + Shift + P in vscode, enter workspace, select Preferences: Open Workspace Settings, the JSON file after the configuration is completed is as follows
{
}
The reason for the warning is the use of tabs. The reason for the error should be that there is some problem with the design of the models.Article class. Otherwise,
Artilce.objects.all()
an error is unlikely to occur. The questioner posted the code (including models.py) to have a look (put it in pre).