The most commonly used Rails commands and their Django equivalents
| Rails | Django |
|---|---|
| rails console | manage.py shell |
| rails server | manage.py runserver |
| rake | None |
| rails generate | None |
| rails dbconsole | manage.py dbshell |
| rails app_name | django-admin.py startproject/manage.py startapp |
| rake db:create | manage.py syncdb |
The salient points to note are,
- Django has all commands via
manage.py, Rails has it broken intorailsandrake. - Overall there are more Rails+Rake commands available than Django commands
- 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 manage.py createsuperuser in rails.
References
http://docs.djangoproject.com/en/dev/ref/django-admin/ http://guides.rails.info/command_line.html http://github.com/uswaretech/Acts-as-Django/blob/master/commands.markdown
Related posts:

{ 2 trackbacks }
{ 15 comments… read them below or add one }
Thanks for your article,
Havent you made a mistake with the django “server” command? I think the right command is “runserver” !
Yours,
All django commands are NOT all in manage.py !
manage.py startproject => that don’t exists
(how can you have a manage.py before the creation of the project?)
Alexis: Have updated. many thanks. Michael: Thanks! Have updated as well.
I blame Saturday eve rush for these mistakes.
Thanks for this great article you shared with us. I really like this release.
Thank for the informative article..
Rails and Django commands : comparison and conversion: The most commonly used Rails commands and their Django equ… http://bit.ly/c8GcAk
This comment was originally posted on Twitter
Rails and Django commands : comparison and conversion — The Usware … http://bit.ly/aotXK1
This comment was originally posted on Twitter
Shabda Raaj: Rails and Django commands : comparison and conversion http://bit.ly/aLaCgZ
This comment was originally posted on Twitter
Rails and Django commands : comparison and conversion http://goo.gl/fb/XESL #django
This comment was originally posted on Twitter
Rails and Django commands : comparison and conversion: http://bit.ly/b5GyK0
This comment was originally posted on Twitter
Rails and Django commands : comparison and conversion — The Usware Blog – Django Web Development: http://bit.ly/dc83rj
This comment was originally posted on Twitter
Rails and Django commands : comparison and conversion http://is.gd/aRx1l
This comment was originally posted on Twitter
Simple Rails and Django commands comparison: http://www.bit.ly/dh62dg
This comment was originally posted on Twitter
#Rails and #Django commands : #comparison and conversion – http://bit.ly/bikOVg
This comment was originally posted on Twitter
“Rails and Django commands : comparison and conversion — The Usware Blog – Django Web Development” ( http://bit.ly/bjnnP1 )
This comment was originally posted on Twitter