python - pycharm - auto load FLASK_APP environment variable -


i have minor question, quite annoying when have everytime.

so have virtual environment build/created in pycharm, , make default intepreter in project.

i understand have set flask_app env variable can run flask run add var in activate script

if deactivate , activate env, works well, however, everytime close pycharm , open project again (my env automatically activated) throw me error when start flask run in pycvarm terminal:

error: not locate flask application. did not provide flask_app environment variable.

and i'm sure flask_app sitting in activate script.

so then, have deactivate , re-activate env in order make app run

question: there settings in pycharm can automatically load env variable?

*i have try put env var in settings-intepreter - not work

*i have try put env var in debug settings - not work

*and run windows...


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -