2014-01-19 22 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

這很簡單。很好的接收。謝謝。 –