在https://docs.djangoproject.com/en/dev/howto/initial-data/上,它说要运行manage.py loaddata <fixturename>
以重新加载数据,或者将夹具命名为“initial_data”以在每次迁移时加载它。
在页面https://code.djangoproject.com/wiki/Fixtures上,它说可以使用 加载固定装置python manage.py syncdb
,但看起来必须先重置数据库(真还是假?)。
最后,在https://docs.djangoproject.com/en/dev/ref/django-admin/上,它说使用django-admin.py loaddata <fixturename>
重新加载。这些都是同一件事的选择吗?或者有什么区别?