Rethink Django course? Consider Flask?

One of the main reasons I became interested in Django was because I’m familiar with Python and I was looking for a way to redo my site around Python instead of PHP. I use Python frequently as opposed to PHP which I use rarely. Most of my website PHP programs were written many years ago. Whenever I need/want to make a change to my website, I basically have to re-learn PHP. I thought if my website was in Python, I could more easily understand the existing code or write new code. Anywho, around 8min into lesson “41. Displaying Objects” the instructor says “So this is Django’s templating language this isn’t Python code. It’s a little bit funky”. This defeats one of my main reason to use Django. Hey we got this great Python language but let’s use another not so great language on top of that!

So maybe I should consider Flask instead. Django still has some great features, such as scalability. Also I like the automatic admin pages. However I usually just use phpMyAdmin as my admin page for my mySQL databases. That’s, where I usually update my tables. For bigger updates I just write a Python program that creates SQL modifications statements. I played with Flask last night and created a very simple program. When backed up the folder it was 717 files and 9.4MB. On the other hand my Django folder which contains 1 completed project and 1 partial project has 18,384 files and is 110.9MB. Flask is called a microframework so smaller is expected. Of course it will get larger when you start extending it with features that Django includes such as SQLAlchemy.