Enable export to XML via HTTP on a large number of models with child relations

Posted by Vasil on Stack Overflow See other posts from Stack Overflow or by Vasil
Published on 2010-06-09T12:51:46Z Indexed on 2010/06/09 14:02 UTC
Read the original article Hit count: 194

Filed under:
|

I've a large number of models (120+) and I would like to let users of my application export all of the data from them in XML format. I looked at django-piston, but I would like to do this with minimum code. Basically I'd like to have something like this:

GET /export/applabel/ModelName/

Would stream all instances of ModelName in applabel together with it's tree of related objects .

I'd like to do this without writing code for each model.

What would be the best way to do this?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models