Django-CRUD-Operations icon indicating copy to clipboard operation
Django-CRUD-Operations copied to clipboard

Class 'Employee' has no 'objects' member pylint

Open mathewmuiruri20 opened this issue 5 years ago • 4 comments
trafficstars

errors

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

mathewmuiruri20 avatar Apr 07 '20 22:04 mathewmuiruri20

Maybe you'll find this useful https://stackoverflow.com/questions/45135263/class-has-no-objects-member

abhikrni avatar Apr 17 '20 12:04 abhikrni

Bro, do Ctrl+Shift+P and search for python linter and disable it.

GPraneeth89 avatar Aug 13 '20 15:08 GPraneeth89

Bro, do Ctrl+Shift+P and search for python linter and disable it.

It worked!! So, that was not a Syntax Error?

siddharth171 avatar Sep 03 '20 15:09 siddharth171

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!

IamOmaR22 avatar Oct 09 '20 13:10 IamOmaR22