Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django - Fixtures in XML

Could anyone points out the docs which describes how the fixture can be done with XML?

like image 791
Sivasubramaniam Arunachalam Avatar asked Sep 05 '25 04:09

Sivasubramaniam Arunachalam


2 Answers

Do a manage.py dumpdata --format=xml --indent=4 and you will see the xml output, which you can also use for loaddata.

like image 65
Izz ad-Din Ruhulessin Avatar answered Sep 07 '25 19:09

Izz ad-Din Ruhulessin


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/

like image 34
keybits Avatar answered Sep 07 '25 21:09

keybits