0

こんにちは、Djangoさん。

私は初心者です。データベースが同期されていることを確認しようとすると、が取得されますError: One or more models did not validate

どうすれば修正できますか?

./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.
4

1 に答える 1

1

修正はdjango-uuidfield==0.4requirements.txtにあります

またはhttps://stackoverflow.com/a/13859974/194515

于 2012-11-09T10:44:06.707 に答える