Fork me on GitHub

Flask

Flask is a Python microframework deliberately built with a small core and easy-to-extend philosophy. Flask is generally considered more Pythonic than Django because Flask web application code is often more explicit. Flask was also written several years after Django and therefore learned from the Python community's reactions as the framework evolved. Jökull Sólberg wrote a great piece articulating to this effect in his experience switching between Flask and Django.

Flask learning checklist

Install Flask on your local development machine.

Work through the 18-part Flask tutorial listed first under "Flask resources" below.

Read through Flask Extensions Registry to find out what extensions you'll need to build your project.

Start coding your Flask app based on what you learned from the 18 part Flask tutorial plus open source example applications found below.

Move on to the deployment section to get your initial Flask project on the web.

Flask resources

The 18-part Flask mega tutorial is an absolutely amazing starting resource for using the Flask framework. Yes, there are a lot of posts in the series. However, each post is focused on a single topic to contain the complexity while the reader is learning the framework. The whole series is well worth an in-depth read-through. The author is also writing the O'Reilly Flask Web Development book so consider picking that up as well.

Open source Flask projects

What do you need to learn about web frameworks next?

How do I deploy Flask web application when I'm ready to put it on the web?

I'd like to go back to reviewing other web frameworks.

The user interface looks terrible. How do I style my web app?


Interested in a complete Full Stack Python book with detailed tutorials and example code? Sign up here and you'll get an alert email if a book is created. No other emails will be sent other than sign up confirmation.