0

Good greetings Django's.

I'm a newbie, and while trying to make sure the database is synced, I get Error: One or more models did not validate.

Any ideas how I can fix it?

./manage.py syncdb --settings=settings.jacob
Error: One or more models did not validate:
users.userprofile: "uuid": Primary key fields cannot have null=True.
places.category: "uuid": Primary key fields cannot have null=True.
places.image: "uuid": Primary key fields cannot have null=True.
places.masterplace: "uuid": Primary key fields cannot have null=True.
places.place: "uuid": Primary key fields cannot have null=True.

./manage.py schemamigration appname --auto --settings=settings.jacob
Error: One or more models did not validate:
users.userprofile: "uuid": Primary key fields cannot have null=True.
places.category: "uuid": Primary key fields cannot have null=True.
places.image: "uuid": Primary key fields cannot have null=True.
places.masterplace: "uuid": Primary key fields cannot have null=True.
places.place: "uuid": Primary key fields cannot have null=True.
2
  • 1
    Can you post some of your models. Commented Nov 8, 2012 at 22:57
  • done, and now I do see null=False but unsure why it's there and if that's the problem. Commented Nov 9, 2012 at 9:10

1 Answer 1

1

The fix is django-uuidfield==0.4 in requirements.txt

or https://stackoverflow.com/a/13859974/194515

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.