Установил на Apache mod-wsgi (в.2.2), в settings.py прописал базу PostgreSQL:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'taskdb', # Or path to database file if using sqlite3.
'USER': 'task_space', # Not used with sqlite3.
'PASSWORD': 'test', # Not used with sqlite3.
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
Проверил на apache - он пишет:
[Wed Apr 13 13:35:18 2011] [error] [client 127.0.0.1] File "C:\\Python27\\Lib\\site-packages\\django\\db\\backends\\postgresql_psycopg2\\base.py", line 24, in <module>
[Wed Apr 13 13:35:18 2011] [error] [client 127.0.0.1] raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
[Wed Apr 13 13:35:18 2011] [error] [client 127.0.0.1] ImproperlyConfigured: Error loading psycopg2 module: DLL load failed: \xcd\xe5 \xed\xe0\xe9\xe4\xe5\xed \xf3\xea\xe0\xe7\xe0\xed\xed\xfb\xe9 \xec\xee\xe4\xf3\xeb\xfc.
Не пойму, куды копать.