Get virtualenv or python path in views
Have you tried request.META? 
I found out some useful information there.
(I'm using pyenv now and I found PATH, PYENV_DIR, PYENV_ROOT, PYENV_VIRTUAL_ENV, VIRTUAL_ENV and so on.)
I'm running a Django project with an virtualenv, I want to get in views the path of running python or of the virtual environment that I'm using
The goal is to pass this path to subprocess to execute a script
Thank you