I need to run the command ‘hatch shell’ to enter my hatch development environment before running the server command ‘py manage.py runserver’. I can’t find out how to do this using the VS code debugger profile specified in the launch.json file below.
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Django",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/testproject/manage.py",
"args": [
"runserver"
],
"django": true,
"justMyCode": true
}
]
}
I tried to run ‘hatch shell’ as a preLaunchTask but that runserver command did not run in the shell environment.