Hi, will you please advise me on how to correctly activate virtualenv via wsgi file using Python 3.4. I still receive ImportError when loading django module which makes me believe that virtualenv is not properly activated.
I followed this thread but without any success: https://community.webfaction.com/questions/10804/using-virtualenvs-with-django
It should be something like this but for python 3.4:
This is how my wsgi file looks like:
Contrary to what you will see in many examples on the web, you do not need to do anything in your WSGI handler to activate your virtualenv.
The correct way to activate your virtualenv is explained by the author of mod_wsgi in his blog: Using Python virtual environments with mod_wsgi
In short, all you need to do is add a
(That should all be on a single line.)