admin管理员组文章数量:1124760
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?
本文标签: djangoHow to properly configure python path in Microsoft Dev ContainersStack Overflow
版权声明:本文标题:django - How to properly configure python path in Microsoft Dev Containers? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736646694a1946123.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论