Created
August 23, 2021 04:10
-
-
Save illgitthat/16a16bfeec6b68829d66614fa5c19a19 to your computer and use it in GitHub Desktop.
Using .env files in VSCode integrated terminal with django pipenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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