Skip to content

Instantly share code, notes, and snippets.

@illgitthat
Created August 23, 2021 04:10
Show Gist options
  • Select an option

  • Save illgitthat/16a16bfeec6b68829d66614fa5c19a19 to your computer and use it in GitHub Desktop.

Select an option

Save illgitthat/16a16bfeec6b68829d66614fa5c19a19 to your computer and use it in GitHub Desktop.
Using .env files in VSCode integrated terminal with django pipenv
The easiest way to do this was to add
export $(grep -v '^#' .env | xargs)
to the end of the activate file used by pipenv
For debug purposes, might also need to set "python.envFile": "${workspaceFolder}/.env",
There might be another way to do this with terminal.integrated.profiles.linux or terminal.integrated.env but I didn't find it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment