I use VS Code Version: 1.74.3 on MacOS 13.2. python -V
returns Python 3.11.1
.
I get the following error message: Import "django.shortcuts" could not be resolved from source Pylance(reportMissingModuleScource)
.
As you can see in the screenshot, the correct venv
is activated and includes Django
.
I also tried or checked:
user/settings.json
as well as .vcode/settings.json
.Using Debug I can safely run my Django-application without any import issues. What do I need to do that Pylance does not issues these problems?
My issue was a bug, fixed and closed.
For reference: https://github.com/microsoft/pylance-release/issues/3881