Skip to content

Instantly share code, notes, and snippets.

@mayronceccon
Created February 25, 2022 22:01
Show Gist options
  • Select an option

  • Save mayronceccon/73c2697da0d679d85c6f31b72822bcdb to your computer and use it in GitHub Desktop.

Select an option

Save mayronceccon/73c2697da0d679d85c6f31b72822bcdb to your computer and use it in GitHub Desktop.
vscode django 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",
"8000",
"--noreload",
"--nothreading"
],
"django": true,
"stopOnEntry": false,
"justMyCode": true,
},
{
"name": "Python: Django Test",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/.venv/bin/pytest",
"args": [
"${file}"
],
"django": false,
"console": "integratedTerminal",
"stopOnEntry": false,
"justMyCode": true,
"env": {
"PYTEST_ADDOPTS": "--no-cov"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment