In this post I am collecting opinions about pros and cons of using two popular web frameworks Python’s Django and Ruby on Rails in web development. I tried to include all factors that matter to choose between two frameworks.
Executing raw SQL in Django
Sometimes you need to run a custom SQL query and return results that do not correspond to your model or make SQL queries to UPDATE or DELETE directly on a database.
Some scenarious:
– make a specific SELECT query and return a list of rows which are dictionaries (not objects of a model)
– make UPDATE or DELETE queries