I've got a Django application using django-mssql to speak w/ SQL Server.

This works all right within the dev server (runserver) but under Apache/mod-wsgi, I recieve a fail associated with it looking for a .dll which does exist:

[Thu May 19 15:35:09 2011] [error] [client]   File "C:\\Python27\\lib\\site-packages\\win32\\lib\\pywintypes.py", line 98, in
__import_pywin32_system_module__ [Thu May 19 15:35:09 2011] [error] [client]     raise ImportError("No system module '%s' (%s)" % (modname, filename)) [Thu May 19 15:35:09 2011] [error] [client] ImportError: No system module 'pywintypes' (pywintypes27.dll)

pywintypes27.dll is available in C:WindowsSysWOW64 (64 bit home windows, however i installed 32 bit py and Apache)

Can there be something either in httpd.conf or WSGIScriptAlias I have to do/specify to assist it find this dll? Another thing I ought to do? I have done a reasonable little bit of Searching/Food binge/Searching with no success.

Some additional info: python27 (not Active Condition) pywin32 is installed Win Server 2008 (64 bit) Apache 2.2 Django 1.3


You pointed out you have Apache 32bits and also the official mod_wsgi site appears to simply have win32 mod_wsgi binaries available, which also need a 32 bits version of Python. Out of your description chances are that you're while using pywin32 library for Home windows 64 bits and also you configuration needs the 32 bits one.