#TIL : Exporting environment variables on virtual env activate

Apr 30, 2018 4 mins read

Exporting environment variables on virtual env activate

You can put common environment variables to the file venv/bin/activate. So everytime we active the virtual env, everything is on the way

# venv/bin/active content

# export your env vars here
export FLASK_APP=hello
export FLASK_ENV=development
export DATABASE=hello.sqlite3
export SECRET_KEY=secret_key_here
comments powered by Disqus