wgwz / flask-error-alerts

Flask error alerts with Twilio Sendgrid

Home Page:https://www.twilio.com/blog/receive-flask-error-alerts-email-twilio-sendgrid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Error Alerts with Twilio Sendgrid

Full tutorial can be found here:

This code shows how to send an email alert every time an unhandled exception occurs.

Getting Started

Installing

$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt

Config

Create a .env file in project directory with the following:

SENDGRID_API_KEY=yourkey
FROM_EMAIL=youremail
TO_EMAIL=youremail

Running locally

(venv) $ flask run

Visit localhost:5000/

Built With

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Flask error alerts with Twilio Sendgrid

https://www.twilio.com/blog/receive-flask-error-alerts-email-twilio-sendgrid

License:MIT License


Languages

Language:Python 100.0%