Skip to content

Instantly share code, notes, and snippets.

@stevensdotb
Created November 8, 2020 01:19
Show Gist options
  • Save stevensdotb/e30aa43a1eb003a57ba7d95885ce6b0a to your computer and use it in GitHub Desktop.
Save stevensdotb/e30aa43a1eb003a57ba7d95885ce6b0a to your computer and use it in GitHub Desktop.

class has no 'objects' member

Install Django pylint: pip install pylint-djang

Go to: ctrl+shift+p > Preferences: Configure Language Specific Settings > Python

The settings.json available for python language should look like the below:

{
    "python.linting.pylintArgs": [
        "--load-plugins=pylint_django"
    ],

    "[python]": {

    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment