Answer the question
In order to leave comments, you need to log in
What is the correct way to set up VSC to work with Django?
[pylint]
E1101:Instance of 'MyModelName' has no 'id' member
class MyModelName(models.Model):
...
def __str__(self):
return str(self.id)
Answer the question
In order to leave comments, you need to log in
sudo -H pip3 install pylint_django
VSC:
"python.linting.pylintArgs": [
"--load-plugins", "pylint_django"
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question