Django-CRUD-Operations
Django-CRUD-Operations copied to clipboard
Class 'Employee' has no 'objects' member pylint
Hello , I am new in django ,i have been stuck here a few days now ,The issue is i get the "Class 'Employee' has no 'objects' member pylint" error
i have installed this: pip install pylint-django but the error still persist
kindly assist i have attached an image to simplify
Maybe you'll find this useful https://stackoverflow.com/questions/45135263/class-has-no-objects-member
Bro, do Ctrl+Shift+P and search for python linter and disable it.
Bro, do Ctrl+Shift+P and search for python linter and disable it.
It worked!! So, that was not a Syntax Error?
Press ctr+sft+P to open the the Command Palette. Now in command palette type Preferences: Configure Language Specific Settings. Now select Python. Here in right side paste this code.
"python.linting.pylintArgs": [
"--load-plugins=pylint_django",
]
Inside the first curly braces. Make sure that pylint-django.
Hope this will help!