News for hackers. Stuff that matters.
Re:New Versions Released! Flask 2.0 with async by nickjj on Wednesday May 12, 2021 @11:53AM (#27131758)
Happy to see Flask 2.0+ ship.

I upgraded a pretty big Flask app (7,500 lines of Python code without counting test lines) that uses lots of Flask extensions, etc. and the upgrade process to Flask 2.0 was the easiest upgrade ever. Everything worked without a single line of app code that needed to change. Then I went in and started using some of the new 2.0 features.

There were a few deprecation warnings in a couple popular extensions but those will go away soon (I opened PRs in Flask-Login, Flask-WTF and Flask-DebugToolbar to fix them).

If anyone is curious I updated my example Flask + Docker + gunicorn + Celery + Redis + PostgreSQL + Webpack + TailwindCSS starter project to support Flask 2.0 here: https://github.com/nickjj/docker-flask-example

And I'll be updating my Build a SAAS App with Flask course for Flask 2.0 today at: https://buildasaasappwithflask.com/. About to record some videos for it now.

Re:New Versions Released! Flask 2.0 with async by mixmastamyk on Wednesday May 12, 2021 @01:34PM (#27132946)
How are the login/security extensions doing? Last I checked some had been abandoned, which caused me some concern and thinking I maybe should have used django or pyramid.
Re:New Versions Released! Flask 2.0 with async by nickjj on Wednesday May 12, 2021 @04:35PM (#27134847)
They are really good. Flask-Login works wonderfully for logging in and managing sessions and there's ItsDangerous (maintained by Pallets) for generating secure tokens if needed.