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
django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Along with the exception for the error in the code:
NameError: name 'timezone' is not defined
The last error is actually the one I want to see in the linter being marked but the result is that it's not linting anything at all (VSCode). When I remove the error linting works as expected. When removing the pylint-django plugin linting works as well (but obviously showing the django specific warnings I wanted to get rid of with the plugin).
I'm new to pylint-django but that can't be the expected behaviour, right? That would mean the code can't have any errors, which would be exactly what I expect the linter to find.
When running the following command:
pylint --load-plugins=pylint_django --django-settings-module=app.settings file.py`
I get the following exception:
django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Along with the exception for the error in the code:
NameError: name 'timezone' is not defined
The last error is actually the one I want to see in the linter being marked but the result is that it's not linting anything at all (VSCode). When I remove the error linting works as expected. When removing the pylint-django plugin linting works as well (but obviously showing the django specific warnings I wanted to get rid of with the plugin).
I'm new to pylint-django but that can't be the expected behaviour, right? That would mean the code can't have any errors, which would be exactly what I expect the linter to find.
Maybe it's related to: #309
The text was updated successfully, but these errors were encountered: