Python 在Django中运行migrate命令时,如何显示安装了哪些装置?
我正在使用Django 1.6和South进行迁移。我有一个fixturePython 在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
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
重命名为其他名称,并:
我按照你的建议做了,但是,问题仍然按照你的建议做了,但是,问题仍然按照你的建议做了,但是,问题仍然按照你的建议做了