1👍
✅
Use:
WSGIDaemonProcess aegee-stuttgart.org python-home=/home/sysadmin/.virtualenvs/django python-path=/home/sysadmin/public_html/aegee-stuttgart.org
not what you had. It is possible to use python-path
to refer to a virtual environment, but you were using the wrong directory. Use python-home
instead and set it to same directory as sys.prefix
gives for the virtual environment.
Because you were using wrong directory, it was picking up Django from main Python installation and not the virtual environment.
Source:stackexchange.com