We love designing and developing websites, but what really drives us is solving problems and cultivating strong relationships with our clients
Rails and Django commands : comparison and conversion
By : shabda
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
Comments
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.
Reactions
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
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
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://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
- Deploying Django apps on Heroku
- Dynamically attaching SITE_ID to Django Caching
- Screencast: How to deploy Django on Heroku
- How to use pep8.py to write better Django code
- Screencast: Django Tutorial Part 1
- How and why to use pyflakes to write better Python
- Getting started with South for Django DB migrations
- A brief overview of Vagrant
- Writing jQuery plugins using Coffeescript
- Behind the Scenes: Request to Response
- rails
- django
- linkroundup
- django opinion
- opinion
- business
- API
- appengine
- python
- satire
- startup
- Uncategorized
- marketing
- personal
- rambling
- search
- interviews
- seo-interviews
- 5startupideas
- ideas
- seo
- tips
- forms
- paypal
- utilities
- datetime
- web2.0
- Amazon
- algorithms
- presentations
- products
- pinax
- satchmo
- ecommerce
- microsoft
- yahoo
- book
- tutorial
- models
- aggreagtion
- meta
- India
- apps
- about
- CSS
- Design
- wordpress
- test slug
- vim
- urls
- reviews
- javascript
- xmpp
- emacs
- Typography
- Grid Theory
- Color Theory
- iphone
- android
- titanium
- mobile applications
- CSS3
- Browser Compatibility
- mobile
- jobs
- lamson
- django setup
- files
- upload
- jsTree
- hierarchical view
- web page
- Treeview
- coffeescript
- request
- response
- South
- django south
- django migration
- --fake
- screencasts
- django caching
- SITE_ID prefix
- April 2012
- February 2012
- January 2012
- December 2011
- October 2011
- September 2011
- July 2011
- June 2011
- April 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- June 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- November 2008
- October 2008
- June 2008
- May 2008
- April 2008
Thanks for your article,
Havent you made a mistake with the django "server" command? I think the right command is "runserver" !
Yours,