Skip to content

wgwz/flask-error-alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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