Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 422 Bytes

Exporting-environment-variables-on-virtual-env-activate.md

File metadata and controls

17 lines (12 loc) · 422 Bytes
  • Date : 2018-04-30
  • Tags : #python

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