Rails and Django commands : comparison and conversion

By : Shabda Raaj

The most commonly used Rails commands and their Django equivalents

Rails | Django

rails console | shell
rails server | runserver
rake | None
rails generate | None
rails dbconsole | dbshell
rails app_name | startproject/ startapp
rake db:create | syncdb

The salient points to note are,

  1. Django has all commands via, Rails has it broken into rails and rake.
  2. Overall there are more Rails+Rake commands available than Django commands
  3. There is no one to one mapping between Rails and Django commands. Eg. There are no equivalent to rake doc:* or rake notes in Django.

Similarly there is no equivalent to createsuperuser in rails.


Related Posts

Can we help you build amazing apps? Contact us today.

© Agiliq, 2009-2012