Class 'Lead' has no 'objects' member code example
Example 1: post has no object memeber in django error
Install Django pylint:
pip install pylint-django
ctrl+shift+p > Preferences: Configure Language Specific Settings > Python
The settings.json available for python language should look like the below:
{
"python.linting.pylintArgs": [
"--load-plugins=pylint_django"
],
"[python]": {
}
}
Example 2: vscode disable pylint class has no member
// in VsCode --> settings.json
"python.linting.pylintArgs": ["--disable={e1101}"]