I'm using Apache 2.2.21 with mod_wsgi on the machine running arch linux. I wish to use django with https ability. I've also installed python2.7 and python 3.2. The django.wsdi file from the project is offered below. After I attempt to access an example file with https but without needing django it really works fine. After I try to obtain a file in the django project using https I recieve the next error - ImportError: No module named django.core.handlers.wsgi

After I compact disc to /usr/lib/httpd/modules and do ldd mod_wsgi.and so i obtain the following which shows that it's put together against python 3.2. But django doesn't support python 3.2 only 2.7.

How do i deal with this issue?

Appreciate any help/pointers.

$ldd mod_wsg.so
    linux-vdso.so.1 =>  (0x00007fff769e1000)
    libpython3.2mu.so.1.0 => /usr/lib/libpython3.2mu.so.1.0 (0x00007f82a3188000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007f82a2f6b000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007f82a2d66000)
    libutil.so.1 => /lib/libutil.so.1 (0x00007f82a2b63000)
    libm.so.6 => /lib/libm.so.6 (0x00007f82a28e1000)
    libc.so.6 => /lib/libc.so.6 (0x00007f82a2559000)
    /lib/ld-linux-x86-64.so.2 (0x00007f82a37e5000)

django.wsdi file: import os import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

path = '/to/mysite'
if path not in sys.path:

Use a version of mod_wsgi put together against Python 2.7. The mod_wsgi module are only able to be certain to one Python version at any given time and what's uses can't be transformed dynamically, rather only having the ability to be set at compile time.

Should you really desire to use different Python versions at different occasions, you won't have the ability to make use of a single Apache/mod_wsgi instance.