方便一键启动cursor中后端服务及默认环境为python3.12
.vscode中 launch.json
js{
// 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 Debugger: Django",
"type": "debugpy",
"request": "launch",
"args": [
"runserver",
"0.0.0.0:8082",
"--settings=aaa_webapi.settings.dev"
],
"django": true,
"autoStartBrowser": false,
"program": "${workspaceFolder}\\manage.py"
}
]
}
setting.json
js{
"files.exclude": {
"**/__pycache__": true,
"**/*.pyc": true,
"**/*.pyo": true
},
"python-envs.defaultEnvManager": "ms-python.python:venv",
"python-envs.terminal.autoActivationType": "command",
"python.defaultInterpreterPath": "C:\\Users\\XPENG_USER\\venv_cal_3.12.10\\Scripts\\python.exe",
"python.terminal.activateEnvironment": true,
"python.terminal.activateEnvInCurrentTerminal": true,
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell",
"args": [
"-NoExit",
"-ExecutionPolicy",
"Bypass",
"-Command",
"& 'C:\\Users\\XPENG_USER\\venv_cal_3.12.10\\Scripts\\Activate.ps1'"
]
}
}
}
本文作者:lixf6
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!