HN Hall of Fame Weekly email

The Flask Mega-Tutorial

blog.miguelgrinberg.com Books & learning Courses & lectures Web & internet Candidate
Screenshot of blog.miguelgrinberg.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 9 calendar years, with breakout response in 3 of them.

submissions
21
submitters
9
observed span
2012–2025
peak thread · 87 comments
243 pts
latest 20+ return · 2022-05-30
234 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

> If you are on Linux, OS X or Cygwin, install flask and extensions by entering the following commands, one after another I think this is a really bad advice. Instead create a file called requirements.txt and add the required livraries, one per line. Then you can install it with flask/bin/pip install - r requirements.txt Edit: More information in the documentation[0] [0]: http://www.pip-installer.org/en/latest/requirements.html

Flask Mega-Tutorial author here. This was a surprise. :) Happy to see people continue to find my tutorial useful and relevant. If you have any questions, I'll be happy to answer.

Miguel's Mega-Tutorial was invaluable to me when I was learning Flask circa 2011-2012. It's a great resource. That said, IMHO, if you're going to implement a simple CRUD app in Python, you may as well just use Django. Django includes all of the "batteries" for handling forms, authentication, databases (the ORM), etc. right out of the box. I think Flask has its place; but when it becomes a simple reimplementation of Django, I'm not sure I see the point.

This tutorial is great. I use flask, its excellent! I tried Django first and it never felt right. The flask documentation is pretty good, and its working great for us. I highly recommend flask.

dougb·27-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
695

reference only — not used in Hall rules or ranking

Total comments
185

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2012-10-12The flask mega tutorialnashequilibrium40
2012-12-27Python Flask (µframework) mega tutorialjoss82278
2013-03-24The Flask Mega-TutorialFirst breakout · Best threadgiis24356
2016-02-19The Flask Mega-Tutorial (2012)Tomte20
2016-04-17The Flask Mega-Tutorial (2014)Tomte20
2016-05-19The Flask Mega-Tutorial (2012)Tomte20
2016-11-25The Flask Mega-Tutorial (2012)Tomte30
2017-04-24The Flask Mega-Tutorial (2012)Tomte20
2017-07-30The Flask Mega-Tutorial (2012)Tomte10
2017-12-01The Flask Mega-Tutorial (2012)Tomte10
2017-12-06Flask Mega-Tutorial (new and improved)alexchamberlain20
2018-06-07The Flask Mega-Tutorial (2012)Tomte30
2018-11-18The Flask Mega-Tutorial (2012)Tomte14732
2021-02-10The Flask Mega-Tutorial (2012)Tomte32
2021-09-02The Flask Mega-Tutorial (2012)Tomte20
2021-11-22The Flask Mega-Tutorial Part I: Hello, Worldokl40
2022-05-11The Flask Mega-Tutorial (2017)Tomte20
2022-05-30Flask Mega-Tutorial (2017)Latest 20+ point returnmemorable23487
2023-12-12The Flask Mega-Tutorial, Part I: Hello, Worldblacksand070
2025-03-21The Flask Mega-Tutorial, Part I: Hello, World (2024)Tomte20
2025-08-14The Flask Mega-Tutorial, Part I: Hello, Worldkhattabyagob20