Get virtualenv or python path in views
The idea of @DanielRoseman was great, I used management.call_command instead of subprocess and it works fine, the correct virtual environement is passed implicitly
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