请参阅loaddata命令的回溯(错误时)

2024-05-17 09:54:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试加载夹具:

python manage.py loaddata stock/fixtures/initial_data.json

但是在没有回溯的情况下发生了错误(我不知道问题出在哪里):

ValueError: Problem installing fixture 'stock/fixtures/initial_data.json': The database backend does not accept 0 as a value for AutoField.

如何得到回溯?在


Tags: pyjsondatamanage错误stock情况fixtures