Reputation: 7770
Could anyone points out the docs which describes how the fixture can be done with XML?
Upvotes: 4
Views: 1679
Reputation: 4423
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/
Upvotes: 3
Reputation: 6185
Do a manage.py dumpdata --format=xml --indent=4
and you will see the xml output, which you can also use for loaddata.
Upvotes: 7