2014-01-19 38 views
0

我想导出我的SQLite数据,然后导入到MySQL(对settings.py文件进行适当的更改后)。以下是我在尝试导入数据时看到的错误:Django从sqlite迁移到MySQL。夹具错误

python manage.py loaddata < datadump.json 

CommandError: No database fixture specified. Please provide the path of at least one fixture in  the command line. 

有关此问题的任何建议?

回答

2

删除 '<'

蟒蛇manage.py loaddata datadump.json

+0

这很简单。很好的接收。谢谢。 –