class has no objects member django
1.Install pylint
pip install pylint-django
2. Press Control + Shift + P
3. Enter "Language Specific Settings"
4. Select Python
5. Enter the following code and save
{"python.linting.pylintArgs": [
"--load-plugins=pylint_django"
],
}