1

当我python manage.py flush在应用程序内运行固定装置时不会加载。

我得到的结果是:

...    
Are you sure you want to do this?

        Type 'yes' to continue, or 'no' to cancel: yes
    Installed 0 object(s) from 0 fixture(s)
    Installed 0 object(s) from 0 fixture(s)

在此处输入图像描述

我究竟做错了什么?我的 Django 版本是1.8.2

4

1 回答 1

0

它不是从磁盘刷新数据,而是从设置为运行测试的测试数据库中刷新数据。

于 2017-03-17T02:12:23.413 回答