Tangential, but I practically owe my life to this guy. He wrote the flask mega tutorial in what I followed religiously to launch my first website. Then right before launch, in the most critical part of my entire application; piping a fragged file in flask. He answered my stackoverflow question, I put his fix live, and the site went viral. Here's the link for posterity's sake https://stackoverflow.com/a/34391304/4180276
You have made my day, sir. :)
When I was in college I discovered the flask mega tutorial and fell in love with programming. Switched from an economics degree to software engineering and now work in the industry.
Thank you for the work you put in.
Also discovered flask in college but was a year away from finishing a marketing degree.
I'm now a SWE with just a marketing degree!
I am a SWE without any degrees. :D I dropped out to... study.
Yeah, our education system sucks that much.
https://www.youtube.com/watch?v=zDZFcDGpL4U
Economist here, started to learn to code as an elaborate way to procrastinate on my master's thesis after I've quit playing videogames.
Absolutely love seeing like a dozen people piling on Mr Grinberg to show gratitude for his work, and indeed the even little things he does to help uplift others in the field. It’s a good reminder that a small helpful contribution, or bit of teaching given at the right time, can be so valuable!
Please note the Buy Me Coffee button at the bottom of the post.
I also want to say thank you for the Flask Mega Tutorial.
When I started my first job as a Data Scientist, it helped me deploy my first model to production. Since then, I’ve focused much more on engineering.
You’ve truly started an amazing journey for me.
Thank you. :)
Whoa! You're here! Well, I think a lot of us owes you a debt of gratitude. Thank you for all you've done for the Python and Flask community.
I also want to chime in and say how you changed my life. I did the same Flask megatutorial and that led me to leaving helpdesk and becoming a support engineer. Years later, and I'm now in big tech. Thanks Miguel!
Thank you for the Flask Tutorial, it got me started in web development and down the line into systems development.
I came way late to the game, so went more the video side, so I have the same feelings about Pretty Printed, love his stuff.
But just now checking out the Mega Flask Tutorial, wow looks pretty awesome.
Amazing to see all of the people thanking you! Great to see that gratitude is still alive and well. You seemed to have touched a lot of lives through that mega tutorial! wow!
I learnt a lot from your numerous Flask blog posts over the years. Your blog is often better than the official Flask docs. Kudos to you, Miguel!
I also used your tutorial to get started with web development and helped me get my first job about 11 years ago. Thanks a lot!
I too started with your tutorial - thanks a million
Rock on man
I also got started in webdev and built a few sitesdl from your tutorial. Thank you!
You got me into web dev. Thank you!
I also learnt a lot from your tutorial of Flask. Thank you.
> flask
Off-topic, but I absolutely loathe new Flask logo. Old one[0] has this vintage, crafty feel. And the new one[1] looks like it was made by a starving high schooler experimenting with WordArt.
[0] - https://upload.wikimedia.org/wikipedia/commons/3/3c/Flask_lo...
[1] - https://flask.palletsprojects.com/en/stable/_images/flask-na...
I hope they go Full Cracker Barrel on this:
1. Original logo has country charm and soul.
2. Replaced with a modern soulless logo.
3. Customer outrage!
4. Company (or open source project) comes to its senses and returns to old logo.
https://media.nbcboston.com/2025/08/cracker-barrel-split.jpg
(n.b. The Cracker Barrel Rebellion is sometimes associated with MAGA. I am very far from that, but I have to respect when people of any political stripe get something right.)
the funny thing about the Cracker Barrel brouhaha is that the new one still looked like something you'd find on a pack of matches from a hotel bar in the 70s.
It looked like Cracker Barrel's own logo in the 1960s/1970 IIRC.
The Cracker Barrel "controversy" seems to have largely been fueled by bots.
Any source for that?
https://www.nrn.com/casual-dining/cracker-barrel-s-logo-cont...
https://www.wsj.com/articles/bot-networks-are-helping-drag-c...
The vast majority of Twitter posts are by bots, so 44.5% seems like a higher proportion of humans than usual. The Cracker Barrel thing was a hot topic amongst people I know for a good 48 hours.
It's more interesting to me how, without fail, a comment always pops in at the mention of Cracker Barrel to say "those were bots, fellow human."
If the "fueled by bots" comment wasn't here already I'd have written it.
Did anyone short Cracker Barrel stock? If not, I have a hard time seeing why bots would have any interest in investing the time/money. There also didn't seem to be any political clout being gained by the complaints.
More real-world is that I know tons of friends/relatives in the South and I don't know of even ONE that liked the redesign.
Russia has gotten VERY good at amplifying any cultural differences or controversies in order to break US politics (and many other countries). If you hadn't noticed it has been VERY effective.
If you haven't noticed, there is no evidence of your claims.
There is in fact proof of this in the real world, where Russia has been paying people in Europe to do actions that rile up "the left" & "the right" (in both directions).
It would be quite naive to think they don't do the same in the virtual world of the internet, where it is even cheaper…
There's no evidence to disprove them either.
Bots aren't necessarily aimed to promote "glorious motherland" directly, there are probably hundreds of people on a payroll searching for easy, popular targets to wreak havoc.
Paranoia. There is just as much evidence that the USA has influence operations in every country on the planet too.
Whatever lets you sleep at night.
Oh, as if "the Russians are comin' to brainwash us all" doesn't keep you up at night.
Give it up. The Russians aren't coming for you. You're gunning for them.
Systematic manipulation isn't brainwashing. The Internet has made it possible.
Says you! I don’t even know if you’re a bot.
You’re probably a bot because you say things I don’t agree with!
Wait! Maybe I AM THE ‘bot?
What were we talking about again?
If you see very similar comments being made by many different accounts over a small timeframe you are likely seeing bots.
That, or it's just collective reality taking its toll. Doesn't have to be an organised campaign of bots - can also just be fans of the idea across a diverse set of humanity.
If you think that doesn't happen organically, take another look at the site you're on.
An example is how during the election their was so many comments saying they won't vote for Kamala because of the genocide in Gaza. This is a deeply illogical position that directly helped Trump win and was very likely promoted by Russian bot farms.
Well, logically, there really were a significant portion of the population who in fact were not okay with what they were seeing in Gaza, from the very beginning.
Your "its the Russians" is just matroska-izing the real issue, which is that the people don't have a voice, in your mind, if the political viewpoint doesn't match a world view in which "the Russians are the bad guys".
The genocide of Gaza was been hugely unpopular since the very beginning.
"there really were a significant portion of the population who in fact were not okay with what they were seeing in Gaza,"
I'm not saying there wasn't. BUT the extreme consistency of the people commenting about it on sites like Reddit combined with the fact that it ultimately ends up helping Trump get elected makes me update my Bayesian estimate that Russia and/or the GOP is behind a lot of them. You saw the same thing in 2015 with all the "Hillary will start world war 3" posts. Those weren't organic at all. You see it in every US presidential election since Hillary v Trump: Many "people" making very similar posts about some reason why democrats or liberals shouldn't vote for the Democratic candidate. This works because voter turnout is what wins or loses elections.
You just have to read Reddit and YouTube and Twitter comments to see all the evidence you need.
Curious that you didn't include HN in that list.
Because I rarely see obvious Russian troll comments on hacker news
Yes, there are Russians on the Internet. No, they’re not all trolls. No, I’m not Russian. Yes, there are American trolls on the Internet. No, America doesn’t own the Internet.
I have no idea what you are trying to say. Russia pays hundreds of people to post comments on the Internet. They have been doing this since the Jade Helm Conspiracy hysteria they caused proved their methods to be very effective.
https://www.texastribune.org/2018/05/03/hysteria-over-jade-h...
Hysteria over Jade Helm exercise in Texas was fueled by Russians, former CIA director says
Gov. Greg Abbott's decision in 2015 to ask the Texas State Guard to monitor a federal military exercise prompted significant criticism. A former CIA director said Wednesday that the move emboldened Russians to next target elections.
The former CIA director is not, at all, someone who can be trusted. They don't present their evidence, either.
Anyone in a position of authoritarian power can say anything. Until it's prosecuted in an open court of law, all bets are off. Hysteria is easily promoted by anyone in the world - even American companies are capable of it - and there is much profit to be made from Russophobia, especially in the heinous market conditions of America's military industrial complex: a very well known hysteria-promoting industry.
In fact, by spreading this rumour, you are more soviet than you might understand.
Stop gaslighting me
So you don’t believe in a free and open society, got it ..
It all adds up to an erosion of trust and increased political polarization.
Rage baiting has value to certain groups.
I recall reading somewhere about some investor who wanted to take control of cb who drove this, so less shorting and more opportunistic drive down the price to buy more shares at a lower price.
Yes. Sardar Biglari, who's an activist investor and the CEO and owner of Steak'n'Shake, has been pushing for more control over Cracker Barrel for several years. He amplified some of the backlash against Cracker Barrel.
https://fortune.com/2025/09/18/sardar-biglari-war-against-cr...
> According to research obtained by the Wall Street Journal from PeakMetrics, 44.5% of X posts about Cracker Barrel on Aug. 20 (when the new logo began to go viral), were posted by “bots or likely bots,” rising to 49% at the peak of the controversy.
I wonder how much this differs from the percentage for any trending topic on X?
Or the President.
ah, the New Coke Gambit
Ah New Coke… Oddly I liked new coke better. My most 80s possession is a new coke can with max headroom on it.
They had both new and “classic” for a while co existing.
> Oddly I liked new coke better.
Fun fact: so did most focus groups and (I think?) blind taste tests when it was just presented as a new drink, but they tended to be horrified by the idea of it actually replacing classic Coke. The problem with that switch was mostly psychological / cultural, not chemical.
Also, Diet Coke, which remains quite popular, is still based on the New Coke formula except with the sweetener swapped out. The no-calorie version of classic Coke is Coke Zero. The Coca-Cola Company has been working to increase Coke Zero's popularity, and it is now much more popular than it used to be, but I think Diet Coke continues to be more popular than Coke Zero even now.
> The Coca-Cola Company has been working to increase Coke Zero's popularity, and it is now much more popular than it used to be, but I think Diet Coke continues to be more popular than Coke Zero even now.
This might be a per-country thing -- Coke Zero has always been more popular in Australia ever since it came out (it can be hard to find Diet Coke in vending machines and for single-bottle sales here). Of course, Coke (and Pepsi) can taste different in different countries but I would say the Aussie one tastes pretty similar to the American one.
ahhh, Max Headroom. Classic memory
reference: https://en.wikipedia.org/wiki/Max_Headroom_signal_hijacking
I was unaware of the new logo… and I am just realizing for the first time after many many Flask apps… that the logo is not a chili pepper.
This logo is bad.. not even talking about the mark, the fonts are wtf. Uppercase 'F' shorter than the lower 'l' and 'k', the 'a' and the 'k' bad, even the lower bar on the 'f' angle is just... eww. And then the mark. I dont get any of this.
> the fonts are wtf. Uppercase 'F' shorter than the lower 'l' and 'k'
Just like in the old one. That is not strange in the slightest, it is a very common feature of typefaces that the ascenders of lower case letters overshoot the height of uppercase. That is one of the ways to distinguish an uppercase i from a lower case L.
> And then the mark. I dont get any of this.
They look to be following the Material Design logo trend that was in fashion a while ago. Following trends in logo design is never a good idea, it makes them look outdated soon.
Oof that a
I take it you’re not from Europe.
https://en.wikipedia.org/wiki/Drinking_horn
Using a chili pepper as a flask could work, though, but not necessarily recommended.
I feel dumb - I thought it was a chili pepper, too.
I was going to post the same thing; glad I searched for 'chili' and found your comment.
Oh God, that's not it.
The old logo is classic and bespoke. I could recall it from memory. It's impressionable.
The new one looks like an unfunded 2005-era dorm room startup. XmlHttpRequests for sheep herders.
No, it looks like a disney channel show in 2008 that had one season
I didn't know that they have the new logo before reading your comment. Been 2 years since I last searched flask but yeah the old logo was vintage and I also preferred the old logo and the new logo feels mid/sucks.
The old logo is much better.
New logo is instantly forgettable. Would disappear as an app icon on a phone home screen, forever mistaken for a bank app.
Old logo is impossible to resize and present on any assets that aren't rectangular. Flask isn't a country podunk restaurant
> Old logo is impossible to resize and present on any assets that aren't rectangular.
Neither is the new one, because you have to be a madman to show this hideous thing anywhere.
> Old logo is impossible to resize and present on any assets that aren't rectangular. Flask isn't a country podunk restaurant
You're measuring it by irrelevant measures. This is like when all the terrible Western game devs criticised Elden Ring because it didn't have "good UX".
>Old logo is impossible to resize and present on any assets that aren't rectangular.
Who the fuck cares? That never hurt flask from becoming a well beloved widely adopted tidy framework.
And it's trivial to "resize and present" the old log on "assets that aren't rectangular"...
>Flask isn't a country podunk restaurant
Yeah, apparently by the new logo it's a generic mall fast food chain restaurant for people with zero taste
Haha, it is very similar! Spot-on.
Here's Sysco, generic mall fast food distributor:
https://www.youtube.com/watch?v=rXXQTzQXRFc
https://logos-world.net/wp-content/uploads/2024/01/Sysco-Log...
The old logo would seem at home on a shelf of classic O'Reilly books. :)
Huh. What most stands out to me about the logo, old and new, is that it clearly depicts a drinking horn instead of a flask.
I think it should not have a logo, so it is left to interpretation.
Thinking about hand-rolled web services, I usually imagine either a stealth alcoholic's metal flask or a mad scientist's Erlenmeyer flask.
Love the new one
New logo looks like a device some tribes' men use to cover their member.
What the…? I guess I’ve been reaching for FastAPI instead of flask these days because I had no idea this happened. Didn’t all the pallets projects have the old timey logos? I wonder what happened.
Goodness gracious, that font in the new logo is the most hideous font I've seen in a very long time.
https://medium.com/@tsecretdeveloper/why-logos-are-getting-b...
It’s hideous!
Counterpoint: The old logo looks like it's for a piece of software that stopped being maintained 15 years ago
yikes, that is not a great logo. it has also lost its essence
In fact, when I saw the new logo, the first thing that came to my mind was Brigadier General Jack D. Ripper in Dr. Strangelove saying "I deny them my essence."
But, this seems to me the gestalt of modern design. Less less less. Until it is no more.
I also hate the new ones. And most of what modern design pumps out now days.
For [1] they picked clip-art of a crown molding cross section.
Yeah I yearn to go back to flask but the logo is giving me the ick.
Whyyyyyyyy
The usual crap when either some "business" or some "designer" types come in
Is it just me or there has never been a single logo update in history that actually improved a logo?
An once whimsical corner of web development has lost its charm due to arbitrary trends.
Wow, the new one is disgusting.
Nice story! My guess is that the site was https://yout.com/ given your profile. Does it still run Flask?
It's all grown up now. Runs on Django for the admin panel. Not that flask ever failed. Just became easier to manage the user base that way.
because of Django admin? any downsides/notable warnings for people considering Flask v Django? any migration guide that's helpful?
To limit the amount of languages we support I recently rewrote one of our backend services from Go (with SQLC) to Python. I hadn't worked with Python "web" for a while and started with Litestar and also their Advanced-Alchemy. Part of the reason was that their DTO's and dataclasses seemed like a good way to skip Pydantic. Anyway, once models became complext it wasn't easy to skip Pydantic and it also wasn't easy to deal with Advanced Alchemy. One afternoon I got so annoyed with it I rewrote everything with Django Ninja. It took me 4-5 hours that evening to recreate all the previous weeks stuff with Django because of how good the batteries included are.
I'm not sure I'd ever use any other web framework than Django going forward, and I'm not using half of it (including the admin). I think Litestar is great by the way, Django is just so easy to produce with.
ok so the recommendation is use Django Ninja? first am hearing of it.
Go with what you understand easier. No downsides to making an app in either, other than the logo.
After sleeping, this is my old man yelling at clouds moment. I'm glad they are trying something new.
Thanks for sharing this story. It goes to show how much of a difference being kind and helping a stranger can make.
Hope I'm able to do the same for someone one day :)
For anyone else wondering whether to click to find what "fragged file" means: no, it's not about Quake and the linked page does not mention 'frag' at all. The question asks how to stream a file to the client in Flask as opposed to reading it all into memory at once and then sending it on. I figured as much (also because e.g. IP fragmentation) but first time I hear this alternative term for streaming
Same! This tutorial from 2012 was one of the first things I did in Python. Coming from PHP it was so refreshing. https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial...
Similar story here. Pleasant to work with too.
The accessibility of this material and also the broader python ecosystem is truly incredible. After reflecting on this recently, started finding ways to give back/donate/contribute.
such inspiring story!! And please bring back: https://www.microphonetest.com/?lang=en
one day of vibe coding
Same happened to me; I owe a career to having gone through his Mega Tutorial. Miguel if you're reading this, thank you from the bottom of my heart.
Same here with following the mega tutorial. Truly one of the goats.
The other answer to your question there is why Flask is so good. One short file and you have a backend and a frontend!
When I saw you were using readlines to read binary file I thought wtf at first, seems like he noticed as well.
Yet another appreciation story for Miguel’s mega tutorial. In 2017 I used it to create our wedding site and learn a bit of web dev (my background is in data science). To motivate me to actually do it I used the strategy the fund the then occurring refactoring of the tutorial. I am still very fond and proud of that first time I actually went and funded some open source effort, it gives you back more than you might expect
We fixed the typo in the first sentence: ow -> owe. Hope that's okay!
Edit: corrected typo in "typo".
type -> typo
Incredible.
Cool story, but was your life really at risk in that situation?
https://torrentfreak.com/tag/yout/
> Brazil Advances Criminal Prosecution of American Yout.com Operator
Touché! I see sibling comments assuming I was being sarcastic (without mandatory sarcasm tag!), but what I was really hoping for was more backstory like this. I guess it depends on how you read things in your head.
Not all statements should be interpreted literally.
You just took the wind right out of his sails
I missed the part about a boat?
Turn the new Flask logo upside dowb, it’s a sail.
And took the shine off his shoes and stopped him in his tracks.
Luckily all the whooshing has refilled them.
At risk of not being programming?
Seemingly.
Did you throw any money his way?
Didn't know he had a patreon, just set it up so the first 100 people, since that's the max it allowed, can get a 1 year access to his discord https://www.patreon.com/miguelgrinberg/redeem/f/C28EB241BB
Didn’t even know you could do this, but what a cool way to do that — helping others learn from him while also materially supporting him.
Thank you so much!
That's awesome!
Thank you!
Thank you!
Awesome