psycopg と postgreSQL 8.3.3

Python エクスプローラーDjango 01 のサンプルソースを動かそうと python manage.py syncdb を実行するとうまくいかない。

C:\Python25\proj\djbookshelf>python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "C:\python25\Lib\site-packages\django\core\management.py", line 1672, in
execute_manager
execute_from_command_line(action_mapping, argv)
File "C:\python25\Lib\site-packages\django\core\management.py", line 1571, in
execute_from_command_line
action_mapping[action](int(options.verbosity), options.interactive)
File "C:\python25\Lib\site-packages\django\core\management.py", line 504, in s
yncdb
cursor = connection.cursor()
File "C:\python25\Lib\site-packages\django\db\backends\postgresql_psycopg2\bas
e.py", line 57, in cursor
postgres_version = [int(val) for val in cursor.fetchone()[0].split()[1].spli
t('.')]
ValueError: invalid literal for int() with base 10: '3,'

ValueError: invalid literal for int() postgresql_psycopg2 で 検索するとこんなページが

 面倒くさいので 58 行目を変更

# postgres_version = [int(val) for val in cursor.fetchone()[0].split()[1].split('.')]
postgres_version = ['8','3','3']

 これで動くかといえば、syncdb は成功したが、そのさきで引っかかる。先は長そうだ。