.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Django: manage.py runserver",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/website/manage.py",
"args": [
"runserver",
],
"justMyCode": false,
"django": true,
},
{
"name": "Django: manage.py test",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/website/manage.py",
"args": [
"test",
"--noinput",
"--buffer",
"${input:tests}",
],
"cwd": "${workspaceFolder}/website",
"justMyCode": false,
"django": true,
}
],
"inputs": [
{
"id": "tests",
"type": "promptString",
"description": "An optional dotted path to select tests. E.g.: \"registrations.tests.test_forms\"",
}
]
}