6 ms·
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
by miguelgrinberg 4y ago
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.
- teruakohatu 4y agoIs flask-admin worth using? Or any other auto-admin type libraries?
- miguelgrinberg 4y agoThis is really a matter of preference. I do not use Flask-Admin on my projects, I have always preferred to design my own admin pages than being forced to accept the choices that are imposed by these big extensions. This allows me to have a consistent UI across admin and non-admin pages. One thing that people often complain is that it is hard and/or tedious to build tables with data, which is one of the building blocks most admin pages need. Last year I wrote a blog article where I show how I build tables in my Flask apps: https://blog.miguelgrinberg.com/post/beautiful-interactive-tables-for-your-flask-templates https://blog.miguelgrinberg.com/post/beautiful-interactive-t....
- zach_garwood 4y agoI think that Flask has many great extensions, but in my opinion, installing flask-admin is just a tacit admission that you really wanted to use Django instead.
- iknownothow 4y agoWhat do you think about the current state of Flask and Flask extensions? Are they being maintained and up to date? Or would it better to go with FastAPI and use its non-async features to have the same Flask like experience?
- miguelgrinberg 4y agoSomething that I think not everybody realizes is that Flask does not require extensions for most things. The extensions are nice because they integrate with the Flask configuration object, and with before/after request handlers when it makes sense, but none of that is required. If an extension stops being maintained, you can always find a newer general purpose Python package that does what you need and just use it in your Flask app. Now this is my personal opinion, but you cannot say the same about FastAPI. Even though the ecosystem of asyncio compatible libraries has grown, it is still several orders of magnitude smaller than what is available for standard non-async Python. So in my view, in terms of access to 3rd party libraries Flask is a better choice.
- CharlieDavies 4y agoBut if you use FastAPI and completely ignore the async aspects, you get some handy tools out of the box, Swagger/Pydantic integration being the big one. Then you're in roughly the same place as Flask where you're just using general python packages. I struggle to see any advantages to Flask vs one of Django or FastAPI at this point.
- joaodlf 4y agoThis is probably quite unpopular, seeing as the FastAPI docs have been so praised in the past... but I really dislike how FastAPI is documented, which has really put me off of the project. The FastAPI docs read like a full project, a very dense project. Sometimes you just want to learn about a specific feature, but you walk into a page that assumes you have the context of the previous chapters, that puts me off a lot. I also dislike how some of the documentation is absolutely enormous (the SQL chapters is one example), but I suspect this might have to do with the not-so-simple approach FastAPI takes, as opposed to Flask, which is indeed very simple. I really can't join the crowd here. I don't think FastAPI is a replacement for Flask, even when async is taken out of the equation. Flask has some weird quirks to it (like "g"), but it really is a beautiful and simple API for the web.
- misnome 4y ago
- hkt 4y agoNo questions, just praise: I loved this tutorial, it was hugely helpful to me when I was just getting into python and I regularly recommend it. Thanks for writing it and sharing it!
- tugberkk 4y agoYour videos and writings are absolute gem! Thank you!
- john-radio 4y agoYour work really got me off the ground with web dev, man. Thank you.
- mgraupner 4y agoHey Miguel, wanted to thank you for creating this tutorial. It started my freelancing career and I created great projects based on it. Thank you very much!
- alejoar 4y agoHey Miguel, I got my first web developer job right after reading you Flask Web Development book in the summer of 2015. Thanks!
- kyle_morris_ 4y agoYour tutorials were a huge influence on me as I began learning to code in my late 20’s and had a profound impact allowing me to start two companies and helped give me a toolset I didn’t have before. Thanks for all you do!
- manugarri 4y agoYour mega post made me learn web development almost a decade ago!, thanks a lot!
- cushychicken 4y agoOne more thank you note can't hurt. Your Flask tutorials are my webapp I Ching. Thanks a bunch. Just about to launch another Flask webapp in the next few weeks, and your tutorials are invaluable. Oh! Before I forget - flask-migrate! Lifesaver! Thanks Miguel!
- kadenwolff 4y agoRead this tutorial 3 years ago or so, thank you for writing it!
- tsumnia 4y agoSame as most of the replies, just wanted to send my thanks for the tutorial. I used your original tutorial (before the function name change) for my dissertation platform and its been running for 6 years now.
- agumonkey 4y agoHi, I never finished your tut but it was a impressive to see the surface covered. I'm curious, are you still using flask ? have you tried FastAPI or Django or something else ? Thanks again