| Merry christmas! For me it's Django for around 5 years. I use it for both personal and work projects for all the following reasons (they are well known but repetition is never bad): * A great (really great) orm * Best documentation I've ever seen in a project * Predictable, no magic * Easy to start but very powerful forms * Great community, positive attitude, always willing to help * Batteries included and, for anything missing, lots of add-ons (in the form of apps) for all your needs * It's in python and supports both 2 and 3 * Good i18n support (english is not my primary language) * Good templating * MVT (model view template) architecture works great, especually after you switch to CBVs * Great support for REST (through django-rest-framework) * Easy and to-the-point project configuration supporting multiple deploys (development, production etc) and non-commited to vcs settings I've tried other frameworks in the past but I've always stuck in a missing feature or just wanted to do things in the django way. |
I'm building a personal project in Tornado and MongoExpress, and the only thing I can see about structuring my models is to put all of them in one file called models.py
I'm used to the RoR way of doing things, so this seems very counter-intuitive to me.
In addition, whenever I try to break the classes into different files, I'm not sure of where to store my DB connection logic, and how to ensure that all models are accessible from the controllers.
Ideas?