I tried to install django to work with apache and mod_wsgi but get this error:
ImportError: No module named django.core.handlers.wsgi,
I\'v rea
I know this is a somewhat old question, but I thought I'd chime in for future SO users who might find this question:
Your mod_wsgi is linked to python2.6, yet you're using python 2.4 to run django according to your config?
I'm going to assume your /usr/bin/python is pointing to something other than the 2.6 which is what mod_wsgi is compiled against. It might also be due to the fact that you're running django against 2.4. I received the same error when I was loading mod_wsgi linked against python2.6 when django was using python2.7. With the version of mod_wsgi I have installed - it came with support for both python2.[6-7], so all I had to do was remove the symlink in /usr/lib/apache2/modules/ for mod_wsgi.so -> mod_wsgi.so-2.6 and change it to mod_wsgi.so -> mod_wsgi.so-2.7.
Easy enough.