How to properly configure python path in Microsoft Dev Containers?
I have configured Microsoft Dev Containers for a Django project but I'm not able to properly set the python path since vscode is raising an error regarding a package that it is not able to find (i.e. Import "django.contrib.auth.models" could not be resolved from sourcePylancereportMissingModuleSource) and it is installed in the venv within my dev container.
My approach has been to declare a variable in devcontainer.json but it has not worked since the warning is still appearing:
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {
"python.pythonPath": "/opt/venv/bin/python3.11"
}
}
}
Any suggestion about how to fix this warning?