【发布时间】:2020-11-29 02:01:17
【问题描述】:
我正在尝试调试我的 Django 应用程序,但 VS Code 的 Python 扩展在我点击运行时提示我选择解释器,即使在我在虚拟环境中选择了 Python 可执行文件之后也是如此。
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["runserver", "localhost:9000", "--noreload"],
"django": true,
"console": "externalTerminal"
}
]
}
我可以做些什么来消除这个讨厌的警报,以便我可以开始调试?
【问题讨论】:
标签: python django visual-studio-code