Django Apache wsgi changes python version
<p>I've installed my Django app on an Ubuntu server with Apache2.4.7 and configured it to use py3.5.2 from a virtual environment.</p>

<p>However, from what I can see in the errors, it's starting at 3.5 and defaulting to 3.4.</p>

<p>Please explain why this is happening:</p>

<pre><code>/var/www/venv/lib/python3.5/site-packages
/usr/lib/python3.4
</code></pre>

<p>See the full error below:</p>

<pre><code>SyntaxError at /

invalid syntax (forms.py, line 2)

Request Method:     GET
Request URL:    http://intranet.example.com/
Django Version:     1.10.1
Exception Type:     SyntaxError
Exception Value:    

invalid syntax (forms.py, line 2)

Exception Location:     /var/www/intranet/formater/views.py in &lt;module&gt;, line 7
Python Executable:  /usr/bin/python3
Python Version:     3.4.3
Python Path:    

['/var/www/intranet',
 '/var/www/venv/lib/python3.5/site-packages',
 '/usr/lib/python3.4',
 '/usr/lib/python3.4/plat-x86_64-linux-gnu',
 '/usr/lib/python3.4/lib-dynload',
 '/usr/local/lib/python3.4/dist-packages',
 '/usr/lib/python3/dist-packages',
 '/var/www/intranet',
 '/var/www/intranet/venv/lib/python3.5/site-packages']
</code></pre>

<p>Here's my apache2.conf file:</p>

<pre><code>WSGIScriptAlias / /var/www/intranet/intranet/wsgi.py
#WSGIPythonPath /var/www/intranet/:/var/www/intranet/venv/lib/python3.5/site-packages

WSGIDaemonProcess intranet.example.com python-path=/var/www/intranet:/var/www/venv/lib/python3.5/site-packages
WSGIProcessGroup intranet.example.com

&lt;Directory /var/www/intranet/intranet&gt;
&lt;Files wsgi.py&gt;
Order deny,allow
Allow from all
&lt;/Files&gt;
&lt;/Directory&gt;
</code></pre>

<p>What am I doing wrong here?</p>