2 ms·
To be specific, Rails has better support for providing XML and JSON APIs. One place where it has better support is serialization. In rails, there is an :include
by benatkin 17y ago
To be specific, Rails has better support for providing XML and JSON APIs. One place where it has better support is serialization. In rails, there is an :include parameter to control whether to include objects from associations (e. g. comments in a post), that is available both on to_xml or to_json. I don't see an option for Django that does the same thing.
http://api.rubyonrails.org/classes/ActiveRecord/Serialization.html http://api.rubyonrails.org/classes/ActiveRecord/Serializatio...
http://docs.djangoproject.com/en/dev/topics/serialization/ http://docs.djangoproject.com/en/dev/topics/serialization/