Just found out that VS code is genious:
in shell, make a project folder:
>mkdir myproject
>cd myproject
>python3 -m virtualenv myproject_venv
>source myproject_venv/bin/activate
>pip install Django
>django-admin startproject myproject .
Code language: Bash (bash)
Now if you open the “root” myproject folder, the one created on line 1, VS code will detect the django project and the virtual environment. So hit F5 to to run the server in debug mode.