The most commonly used Rails commands and their Django equivalents
|rails console||manage.py shell|
|rails server||manage.py runserver|
|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 into
- 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.
Thank you for reading the Agiliq blog. This article was writen by shabda on Mar 20, 2010 in Uncategorized .
You can subscribe ⚛ to our blog.
We love building amazing apps for web and mobile for our clients. If you are looking for developmenrt help, contact us today ✉.
Would you like to download 10+ free Django and Python books? Get them here