News for hackers. Stuff that matters.
Re:Ask HN: State of Django vs. Rails? by danso on Tuesday February 19, 2013 @06:08PM (#5247759)
A related question: what is the state of Python's lighter frameworks versus Ruby's Sinatra? I haven't used Rails in awhile, but since ActiveRecord, ActiveSupport, etc have been refactored into framework agnostic libraries, I've been able to build lighter websites using Sinatra or Padrino (which sits atop Sinatra) using my Rails experience. And of course,Rails itself has allowed for components to be switched in for their AR equivalents, e.g. MongoMapper

How swappable are the core components of Django?

Re:Ask HN: State of Django vs. Rails? by civilian on Tuesday February 19, 2013 @06:32PM (#5247881)
You can swap out Django's built-in ORM for something else (like SQLalchemy) and you can also swap out the django templating for something else if you want.

Flask http://flask.pocoo.org/ is pretty awesome and I've used it for a project that was really light on server-side code (http://palettecomp.com/), but I've never used Sinatra so I don't know how it compares.

Re:Ask HN: State of Django vs. Rails? by r4vik on Tuesday February 19, 2013 @07:21PM (#5248131)
Flask is basically exactly the same as Sinatra
Re:Ask HN: State of Django vs. Rails? by tholex on Tuesday February 19, 2013 @06:29PM (#5247867)
Python's Flask is a superb Sinatra clone, and Django's ActiveRecord equivalents are equally useful in Flask, especially for Mongo. Flask sits on top of Werkzeug, which is similar in power and use cases as Rack - middleware, fine-grain auth, etc.