Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/300.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Django中运行migrate命令时,如何显示安装了哪些装置?_Python_Django_Django South_Django 1.6_Django Fixtures - Fatal编程技术网

Python 在Django中运行migrate命令时,如何显示安装了哪些装置?

Python 在Django中运行migrate命令时,如何显示安装了哪些装置?,python,django,django-south,django-1.6,django-fixtures,Python,Django,Django South,Django 1.6,Django Fixtures,我正在使用Django 1.6和South进行迁移。我有一个fixtureinitial_data.json。当我运行/manage.py syncdb时 Installed 48 object(s) from 1 fixture(s) Installed 96 object(s) from 2 fixture(s) 但是,当我运行/manage.py migrate时 Installed 48 object(s) from 1 fixture(s) Installed 96 object

我正在使用Django 1.6和South进行迁移。我有一个fixture
initial_data.json
。当我运行
/manage.py syncdb

Installed 48 object(s) from 1 fixture(s)
Installed 96 object(s) from 2 fixture(s)
但是,当我运行
/manage.py migrate

Installed 48 object(s) from 1 fixture(s)
Installed 96 object(s) from 2 fixture(s)
看起来信息量加倍了。如何查看在migrate命令上安装的固定装置?这个问题对我来说很重要,因为我在项目的其他地方加载了夹具上的重复数据,这可能就是原因

upd我按照建议在
migrate
上进行数据迁移以加载装置,但问题是两次迁移而不是一次迁移仍然存在:

./manage.py migrate
Running migrations for hello:
 - Migrating forwards to 0007_migration_fixture.
 > hello:0007_migration_fixture
 - Migration 'hello:0007_migration_fixture' is marked for no-dry-run.
Installed 102 object(s) from 2 fixture(s)
 - Loading initial data for hello.
Installed 0 object(s) from 0 fixture(s)

不要将
initial_data
fixture与South一起使用。将
initial_data.json
重命名为其他名称,并:


不要将
initial_data
fixture与South一起使用。将
initial_data.json
重命名为其他名称,并:


不要将
initial_data
fixture与South一起使用。将
initial_data.json
重命名为其他名称,并:


不要将
initial_data
fixture与South一起使用。将
initial_data.json
重命名为其他名称,并:


我按照你的建议做了,但是,问题仍然按照你的建议做了,但是,问题仍然按照你的建议做了,但是,问题仍然按照你的建议做了