【问题标题】:Django migrating from sqlite to MySQL. Fixture errorDjango 从 sqlite 迁移到 MySQL。夹具错误
【发布时间】:2014-02-08 20:35:37
【问题描述】:

我正在尝试导出我的 SQLite 数据,然后导入 MySQL(在对 settings.py 文件进行适当更改之后)。这是我在尝试导入数据时看到的错误:

python manage.py loaddata < datadump.json

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

关于问题可能是什么的任何想法?

【问题讨论】:

    标签: mysql django sqlite django-models


    【解决方案1】:

    去掉'

    python manage.py loaddata datadump.json

    【讨论】:

    • 这很容易。不错的收获。谢谢。
    猜你喜欢
    • 2011-11-05
    • 2023-03-12
    • 2020-06-17
    • 2018-10-13
    • 2012-03-03
    • 2016-03-30
    • 2018-08-01
    • 2015-09-28
    • 2019-06-23
    相关资源
    最近更新 更多