![Talk Python To Me artwork](https://is4-ssl.mzstatic.com/image/thumb/Podcasts113/v4/41/40/d2/4140d2c9-898d-bf10-1bb4-5da903cce1aa/mza_8242470495418275865.png/100x100bb.jpg)
#264 10 tips every Flask developer should know
Talk Python To Me
English - May 12, 2020 08:00 - 1 hour - 36.9 MB - ★★★★★ - 418 ratingsTechnology Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
Are you a web developer who uses Flask? It has become the most popular Python web framework. Even if you have used it for years, I bet we cover at least one thing that will surprise you and make your Flask code better.
Join me as I speak with Miguel Grinberg about his top 10 list for tips and tricks in the Flask world. They're great!The 10 tips No need to use jsonify anymore Do not store sensitive information in the user session Using a .env file for secrets - python-dotenv Windows laptops and Chromebooks are both great Python/Flask development machines with their Linux emulation Differences between App context and Request context Flask outside of a web server (Celery workers, cron jobs, etc.) Use https://github.com/TypeError/secure.py Use httpie instead of curl to send requests to your app Flask for asyncio: Quart https://pgjones.gitlab.io/quart/ Greenlet frameworks (gevent, eventlet) and Flask Blueprints
Links from the show
Miguel on Twitter: @miguelgrinberg
Miguel's blog: blog.miguelgrinberg.com
python-dotenv package: pypi.org
httpie package: httpie.org
Quart: pgjones.gitlab.io
Talk Python episode on Quart: talkpython.fm
secure.py package: github.com
Sponsors
Sentry Error Monitoring, Code TALKPYTHON
Linode
Talk Python Training