title: 500 Internal Server Error: Python 3.5, Django and mod_wsgi
body: <p>I'm trying to deploy a Python/Django application on <a href="https://www.digitalocean.com/" rel="nofollow noreferrer">DigitalOcean</a> and getting the following error:</p>
  
  <p><strong>apache error.log</strong></p>
  
  <pre><code>[wsgi:error] [pid 17060]     from django.core.wsgi import get_wsgi_application
  [wsgi:error] [pid 17060] ImportError: No module named 'django'
  [wsgi:error] [pid 17060] mod_wsgi (pid=17060): Target WSGI script '/var/www/demo-app/src/demo/demo/wsgi.py' cannot be loaded as Python module.
  [wsgi:error] [pid 17060] mod_wsgi (pid=17060): Exception occurred processing WSGI script '/var/www/demo-app/src/demo/demo/wsgi.py'.
  [wsgi:error] [pid 17060] Traceback (most recent call last):
  [wsgi:error] [pid 17060]   File "/var/www/demo-app/src/demo/demo/wsgi.py", line 12, in &lt;module&gt;
  [wsgi:error] [pid 17060]     from django.core.wsgi import get_wsgi_application
  [wsgi:error] [pid 17060] ImportError: No module named 'django'
  [wsgi:error] [pid 17060] mod_wsgi (pid=17060): Target WSGI script '/var/www/demo-app/src/demo/demo/wsgi.py' cannot be loaded as Python module.
  [wsgi:error] [pid 17060] mod_wsgi (pid=17060): Exception occurred processing WSGI script '/var/www/demo-app/src/demo/demo/wsgi.py'.
  [wsgi:error] [pid 17060] Traceback (most recent call last):
  [wsgi:error] [pid 17060]   File "/var/www/demo-app/src/demo/demo/wsgi.py", line 12, in &lt;module&gt;
  [wsgi:error] [pid 17060]     from django.core.wsgi import get_wsgi_application
  [wsgi:error] [pid 17060] ImportError: No module named 'django'
  </code></pre>
  
  <p>My setup is as follows:</p>
  
  <pre><code>Ubuntu==16.04
  django==1.11.4
  apache==2.4.18
  mod-wsgi==4.5.22
  python 3.5(virtualenv)
  libapache2-mod-wsgi-py3
  </code></pre>
  
  <p>My Apache config file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          WSGIDaemonProcess demo-app python-path=/var/www/demo-app/src/demo:/var/www/demo-app/demoenv/lib/python3.5/site-packages
          WSGIProcessGroup demo-app
          WSGIScriptAlias / /var/www/demo-app/src/demo/demo/wsgi.py
          ...
          ...
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Any ideas on what I'm missing?</p>