3 ms·
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, ActiveSuppor
by danso 14y ago
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?
- tholex 14y agoPython'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.
- civilian 14y agoYou 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/ 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/ http://palettecomp.com/), but I've never used Sinatra so I don't know how it compares.
- r4vik 14y agoFlask is basically exactly the same as Sinatra