Django - Fixtures in XML
Could anyone points out the docs which describes how the 开发者_开发问答fixture can be done with XML?
Do a manage.py dumpdata --format=xml --indent=4
and you will see the xml output, which you can also use for loaddata.
These two pages should help:
http://docs.djangoproject.com/en/1.2/howto/initial-data/#providing-initial-data-with-fixtures
and
http://docs.djangoproject.com/en/1.2/topics/serialization/
精彩评论