Billy Fung

Initial Thoughts on Django

From a Flask fanboy

Billy Fung / 2018-06-04


It’s hard to change when you’ve already formed habits and grown accustomed to certain ways. Most of the Python apps I’ve written have used Flask, and that is mostly because I do more than just web apps. At work we’ve recently been refactoring and breaking apart a part of one system, and the decision was to use Django.

My first hesitation in learning a new framework was the time needed for me to pick up the Django ORM vs SQLAlchemy. I had never really thought too much about different ORM designs and differences until very recently, and with it came many opinions. I’ve been jotting down quick notes whenever I remember, and here are some of them.

Django notes

As you can see, a lot of my issues come from being used to SQLAlchemy and how flexible it is. But using Django has made me realise that it was built with CRUD web apps in mind, and for that it is really powerful. The nature of my previous work involved dealing with complex data driven applications, ones where they do not fit into any specific design mold. This is the main reason why I haven’t done anything serious in Django.

After about a month of usage, I’m still not sure how I feel about Django vs Flask for anything other than stock CRUD apps.