If you want to build a website in Python, there are two web frameworks that dominate any discussion: Flask and Django.

Flask is easier to get started with and is a micro-framework like Node/Express which means that you can write a Hello, World app in seven lines of code. But as you add core functionality, it is up to you, the developer, to decide which 3rd party packages to use. This adds flexibility but also complexity.

Django requires a little more setup but takes a “batteries-included” framework. All core functionality is already built-in: user authentication, admin view, database support, etc. You don’t need to reinvent the wheel.

Ultimately I would recommend building a few quick apps in both and see which approach you prefer.

Flask Tutorials:

Django Tutorials:




Interested in learning more Django? I’ve written 3 books!