Skip to main content

Notification/Alert for django users

Project description

ExeceptionMiddeware

Exception to teams middleware is a simple django app that contains only a middelware that is resposible for sending logs to your teams channel using webhook in any event of internal server error.

How to create webhook for teams channel

Tools

Installation

On your terminal/shell

pip3 install exeception-to-teams

Quiz setup


In your project's settings.py file. Add exeception_to_teams in your INTALLLED_APPS list, configure middleware as following. You must define TEAMS_CHANNEL_URL

# settings.py

INSTALLED_APPS = [
  ...,
  "exeception_to_teams",
]


MIDDLEWARES =[
...
'exeception_to_teams.middlewares.ExeceptionMiddleware'
]

TEAMS_CHANNEL_URL = os.envion.get("TEAMS_CHANNEL_URL")

PROJECT_NAME = "Project X" # Uses this value in card title.

Generate an exeception intentionally in your django application and check log in your teams channel.

Have a great day!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exeception-to-teams-0.0.3.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

exeception_to_teams-0.0.3-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page