开发者

Django - Fixtures in XML

开发者 https://www.devze.com 2023-01-23 01:30 出处:网络
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

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号