I just had to troubleshoot an installation of Django, trying to get it to run under mod_swgi with the specs mentioned above. I kept getting Internal Server Error 500, and checking the Apache logs found this:
[Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] mod_wsgi (pid=3460): Target WSGI script 'C:/xampp/django/testapp/_apache/ django.wsgi' cannot be loaded as Python module. [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] mod_wsgi (pid=3460): Exception occurred processing WSGI script 'C:/xampp/django/ testapp/_apache/django.wsgi'. [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] Traceback (most recent call last): [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] File "C:/ xampp/django/testapp/_apache/django.wsgi", line 6, in <module> [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] import django.core.handlers.wsgi [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] File "C:\ \Python26\\Lib\\site-packages\\django\\core\\handlers\\wsgi.py", line 8, in <module> [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] from django import http [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] File "C:\ \Python26\\lib\\site-packages\\django\\http\\__init__.py", line 5, in <module> [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] from urllib import urlencode [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] File "C:\ \Python26\\lib\\urllib.py", line 26, in <module> [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] import socket [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] File "C:\ \Python26\\lib\\socket.py", line 46, in <module> [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] import _socket [Fri Apr 30 10:03:49 2010] [error] [client 192.168.x.xxx] ImportError: DLL load failed: The specified module could not be found. After some Googling, it turns out the problem was with Python 2.6.1 under Windows. Installing the latest version, 2.6.5, solved this problem immediately for me. Hopefully this will be helpful to someone else! -Alex -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.