Vscode pylint reported an error of “no member”, but it is running normally

Problem: 
Pylint Error Message: “E1101: Module 'xxx' has no 'xxx' member'”.
pylint no member issue but code still works in vscode

Python Python syntax checker for vscode

 

Pylint is static check . When using a third-party library, some members will be created only when the code is running, and it can’t find members

Solution:
using pylint Django to enhance pylin int steps

    1. install pylint Django
$ pip3 install pylint-django

Use pylint-django in vscode‘s setting.json for pylint-django</code

"python.linting.pylintArgs": [
    "--load-plugins",
    "pylint_django"
]
      1. restart VSCode


Read More: