Poetry creates a virtualenv where packages for the site are installed. You can set your python interpreter path in vscode to use this virtualenv's interpreter, which will allow a much nicer backend development experience.
- Inside the
backend/
directory, runpoetry debug info
and copy the "Path:" property under the "Virtualenv" category.
- In vscode, open the command window (Ctrl+Shift+P on Windows, Cmd+Shift+P on MacOS) and type "Python: Select Interpreter" and choose the command as it appears.
- Click
Enter interpreter path...
and paste your copied path from before.