开发者

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/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜