There was a need recently to start a new web application using Python as the development language.
Having spent most of the last few years developing using Ruby with Ruby on Rails, this presented a nice challenge.
So the first thing, that needed some research was to be able to find a web framework in Python that is as close as possible to Ruby on Rails.
A quick web framework comparison and some web searches, indicated that the closest framework to Ruby on Rails, was Django.
So here I intend to list the similarities and the differencies of the two frameworks, as I go along the route and discover new things. The initial impression after a couple of days is that there is a surprising similarity between them, which hopefully will make the road smoother.
- MVC In the Ruby on Rails we have Models, Views and Controllers. In Django that becomes Models, Templates and Views.
- Package installationWhile in Ruby on Rails we have gem install in Django that becomes pip install
- RVM(rbenv)To keep ruby versions and gems in different environments in Ruby we could use RVM or rbenv. On Python that is virtualenv