Setting environment variables in virtualenv (Python, Windows)
The problem was that PyCharm does not activate the virtualenvironment when pressing the run button. It only uses the virtualenv python.exe.
As the title suggests, I'm trying to use a environment variable in a config file for a Flask project (in windows 10). 
I'm using a virtual env and this far i have tried to add set "DATABASE_URL=sqlite:///models.db" to /Scripts/activate.bat in the virtualenv folder. 
But it does not seem to work. Any suggestions?