0

I'm trying to install a shopping cart plugin for django but having a problem when I run manage.py syncdb.

When run, it installs 4 tables, then I'm getting the following error message:

File "(mypath)/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute return self.cursor.execute(query, args) django.db.utils.DatabaseError: NUMERIC scale 127 must be between 0 and precision 10

I'm guessing that there is most likely a problem with the models.py but I don't know what line to look at.

has anyone ever run into anything similar?

1
  • Let use know what fields the models.py defined in the shopping cart application. Perhaps whoever wrote that never tried running it on a PostgreSQL. Commented Sep 24, 2010 at 13:56

1 Answer 1

1

Sounds like you have a numeric field with an invalid scale defined. Did you perhaps mix up scale and precision?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.