我正在尝试加载夹具:
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:
有一个回溯选项。在
这在loaddata docs中没有提到,它是default command options的一部分。在
相关问题 更多 >
编程相关推荐