shabda
Comments
Reactions

Rails and Django commands : comparison and conversion

By : Shabda Raaj

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,

  1. Django has all commands via manage.py, 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 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


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

Comments

Alexis Metaireau

Thanks for your article,

Havent you made a mistake with the django "server" command? I think the right command is "runserver" !

Yours,

commmenttor
Michael 20th March, 2010

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?)

commmenttor
shabda

Alexis: Have updated. many thanks.
Michael: Thanks! Have updated as well.

I blame Saturday eve rush for these mistakes.

commmenttor
Malone Web Development

Thanks for this great article you shared with us. I really like this release.

commmenttor

Reactions

uswaretech_blog

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

DjangoIreland

Rails and Django commands : comparison and conversion — The Usware … http://bit.ly/aotXK1

This comment was originally posted on Twitter

planetdjango

Rails and Django commands : comparison and conversion http://goo.gl/fb/XESL #django

This comment was originally posted on Twitter

djangostories

Rails and Django commands : comparison and conversion: http://bit.ly/b5GyK0

This comment was originally posted on Twitter

djangostories

Rails and Django commands : comparison and conversion — The Usware Blog – Django Web Development: http://bit.ly/dc83rj

This comment was originally posted on Twitter

djangobot

Shabda Raaj: Rails and Django commands : comparison and conversion http://bit.ly/aLaCgZ

This comment was originally posted on Twitter

bryanwp

Rails and Django commands : comparison and conversion http://is.gd/aRx1l

This comment was originally posted on Twitter

mrmsiahaan

Simple Rails and Django commands comparison: http://www.bit.ly/dh62dg

This comment was originally posted on Twitter

artportus

#Rails and #Django commands : #comparison and conversion – http://bit.ly/bikOVg

This comment was originally posted on Twitter

tzangms

“Rails and Django commands : comparison and conversion — The Usware Blog – Django Web Development” ( http://bit.ly/bjnnP1 )

This comment was originally posted on Twitter

Post a comment Name :

Email :

Your site url:

Comment :

© Agiliq, 2009-2012