Re:Ask HN: Updated recommendation on Rails versus Django?
by mccutchen on Sunday July 19, 2009 @02:59PM
(#713235)
> Rails has better support for APIs
What does this mean?
Re:Ask HN: Updated recommendation on Rails versus Django?
by benatkin on Sunday July 19, 2009 @09:52PM
(#713742)
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/Serializatio... http://docs.djangoproject.com/en/dev/topics/serialization/
- Rails has built-in migration support
- Rails has better support for APIs
- Django has some neat stuff in contrib including authentication and an admin interface
- Django has "pluggables" -- downloadable apps that can be snapped in just like the admin interface. Rails has engines, but they're new and not as mature as pluggables.