title: Django - 500 internal server error "no module named django"
body: <p>django return 500 internal server error (apache 2.4.10, ubuntu 15.04, django 1.9.6)</p>
  
  <p>apache log:</p>
  
  <pre><code>[wsgi:warn] mod_wsgi: Compiled for Python/3.4.2.
  [wsgi:warn] mod_wsgi: Runtime using Python/3.4.3.
  [mpm_event:notice] AH00489: Apache/2.4.10 (Ubuntu) mod_wsgi/4.3.0  Python/3.4.3 configured -- resuming normal operations
  [core:notice] [pid 9973:tid 140000454645632] AH00094: Command line: '/usr/sbin/apache2'
  [wsgi:error] mod_wsgi (pid=9976): Target WSGI script '/home/user/KeyShare/KeyShare/wsgi.py' cannot be loaded as Python module.
  [wsgi:error] mod_wsgi (pid=9976): Exception occurred processing WSGI script '/home/user/KeyShare/KeyShare/wsgi.py'.
  [wsgi:error] traceback (most recent call last):
  [wsgi:error] File "/home/user/KeyShare/KeyShare/wsgi.py", line 12, in  &lt;module&gt;
  [wsgi:error] from django.core.wsgi import get_wsgi_application
  [wsgi:error] ImportError: No module named 'django'
  </code></pre>
  
  <p>/etc/apache2/sites-available/000-default.conf file:</p>
  
  <pre><code>Alias /static /home/user/proj/Gestione/static
  &lt;Directory /home/user/proj/Gestione/static&gt;
      Require all granted
  &lt;/Directory&gt;
  
  &lt;Directory /home/user/proj/proj&gt;
      &lt;Files wsgi.py&gt;
          Require all granted
      &lt;/Files&gt;
  &lt;/Directory&gt;
  WSGIDaemonProcess proj python-path=/home/user/proj:/home/user/.local/lib/python3.4/site-p$
  WSGIProcessGroup proj
  WSGIScriptAlias / /home/user/proj/proj/wsgi.py
  </code></pre>
  
  <p>wsgy.py:</p>
  
  <pre><code>import os
  from django.core.wsgi import get_wsgi_application
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proj.settings")
  application = get_wsgi_application()
  </code></pre>
  
  <p>I'm NOT using virtualenv</p>
  
  <p>thanks for help</p>
  
  <p>related question: <a href="https://stackoverflow.com/questions/37238192/django-permission-denied">HERE</a></p>
  
  <p><strong>EDIT:</strong> I had installed django with non-root user, now I reinstall it as root user and It works. Thanks everyone</p>