manage.py syncdb错误,postgres_psycopg2

时间:2010-09-22 20:38:34

标签: django postgresql django-models psycopg2 django-manage.py

我正在尝试为django安装购物车插件,但在运行manage.py syncdb时出现问题。

运行时,它会安装4个表,然后我收到以下错误消息:

  

文件   “(mypath中)/django/db/backends/postgresql_psycopg2/base.py”,   第44行,执行中       return self.cursor.execute(query,args)django.db.utils.DatabaseError:   NUMERIC scale 127必须介于0之间   和精度10

我猜测models.py很可能存在问题,但我不知道要查看哪一行。

有没有人遇到类似的事情?

1 个答案:

答案 0 :(得分:1)

听起来你有一个定义了无效比例的数字字段。您是否混淆了规模和精度?

相关问题