You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get pylint-django to work as expected in the UI, I have activated the pylinter as the linter, but with the current settings nothing gets marked in my file. However, if I remove the line that loads the django settings ("--django-settings-module=jobs.settings") the linter start to work in the UI (but getting a ton of errors).
I've tried running the linter in the CLI by running:
Which returns a list of suggestions from the linter on lines to be adjusted, which seems accurate, but getting a bit of weird errors, such as import problems with rest_framework (which I can find in pip freeze list, so it's not missing there). The most surprising thing is that one line say:
Account_management_views.py:1:0: E5110: Django was not configured. For more information run pylint --load-plugins=pylint_django --help-msg=django-not-configured (django-not-configured)
The text was updated successfully, but these errors were encountered:
minifisk
changed the title
Django-pylint don't recognize settings option in settings.json, as don't work in UI
Django-pylint don't recognize settings option in settings.json, neither work in UI
Jul 21, 2021
I can't get pylint-django to work as expected in the UI, I have activated the pylinter as the linter, but with the current settings nothing gets marked in my file. However, if I remove the line that loads the django settings ("--django-settings-module=jobs.settings") the linter start to work in the UI (but getting a ton of errors).
I've tried running the linter in the CLI by running:
pylint --load-plugins=pylint_django account_management_views.py
Which returns a list of suggestions from the linter on lines to be adjusted, which seems accurate, but getting a bit of weird errors, such as import problems with rest_framework (which I can find in pip freeze list, so it's not missing there). The most surprising thing is that one line say:
Account_management_views.py:1:0: E5110: Django was not configured. For more information run pylint --load-plugins=pylint_django --help-msg=django-not-configured (django-not-configured)
These are my settings:
The text was updated successfully, but these errors were encountered: