Today I Learned (2020-05-28)

TalkPython Podcast Episode #264: 10 tips every Flask developer should know

Podcast

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
  • Greenlet frameworks (gevent, eventlet) and Flask
  • Blueprints!

<< Prev | Next >>