CommandError: Error: No database fixture specified. Please provide the path of at least one fixture

- 日理万妓 2023-01-20 09:54 205阅读 0赞

运行django项目时报错

现象

  1. Creating test database for alias 'default'...
  2. CommandError: Error: No database fixture specified. Please provide the path of at least one fixture in the command line.

原因

使用了sqlite3
在这里插入图片描述
然后在Edit Configurations中勾选了Test server
在这里插入图片描述

解决方案

去掉 Test server前面的勾即可

后记

【后记】为了让大家能够轻松学编程,我创建了一个公众号【轻松学编程】,里面有让你快速学会编程的文章,当然也有一些干货提高你的编程水平,也有一些编程项目适合做一些课程设计等课题。

也可加我微信【1257309054】,拉你进群,大家一起交流学习。
如果文章对您有帮助,请我喝杯咖啡吧!

公众号

公众号

发表评论

表情:
评论列表 (有 0 条评论,205人围观)

还没有评论,来说两句吧...

相关阅读