是django版本0.96与psycopg2-2.0.7兼容

时间:2010-03-11 13:21:54

标签: django

我无法同步数据库... manage.py syncdb无法正常运行后出现错误

  

D:\ deepak \ py \ ifrnds> manage.py syncdb

Traceback (most recent call last):
  File "D:\deepak\py\ifrnds\manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python25\Lib\site-packages\django\core\management.py", line 1670, in
execute_manager
    execute_from_command_line(action_mapping, argv)
  File "C:\Python25\Lib\site-packages\django\core\management.py", line 1569, 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: '1,'

请帮我做什么....

1 个答案:

答案 0 :(得分:0)

通常一个单词的答案会得到投票。但我想每个人都会同意这个。

更新!