Set environment variables in FLASK
In vs code using bash in Ubuntu, if that is the case, look for setting the env variables in the .bash_profile so that it remembers the variables even after the terminal program is closed.
The environment variables are cleared when you exit the terminal and it is required that we need to set them again when we launch the terminal.