2. Why?
1. Polyglot-ism is good
2. Not a Django vs Rails tutorial
Agiliq.com - Building Amazing Apps
3. Why?
1. Rails is an influential framework and many
libraries have been inspired by it. Eg Backbone.
2. Lot of great libraries and knowing rails would
help you port them rather than start from
scratch. Eg we built Django-Merchant after
looking through the API of active merchant.
3. Eg. South, Arel
Agiliq.com - Building Amazing Apps
4. Good ideas to pick up from Rails
1. Asset Pipeline
2. Better way to write template tags
3. Simplified routing
Agiliq.com - Building Amazing Apps
5. You say MTV, I say MVC
app_name/models.py app/models/models_
name.rb
app_name/views.py app/controllers/contro
ller_name.rb
templates/app_name/ app/views/view_nam
template.html e.erb
Agiliq.com - Building Amazing Apps
9. Routing
urls.py config/routes.rb
Regex based DSL based
Agiliq.com - Building Amazing Apps
10. Some More Mappings.
python manage.py runserver rails server
python manage.py shell rails console
python manage.py syncdb && python rake db:create && rake db:migrate
manage.py migrate
Agiliq.com - Building Amazing Apps
11. Things not to learn from Rail
1. Too much autogenerated code
2. Django forms API is much cleaner
3. All models fields are nullable by default
Agiliq.com - Building Amazing Apps