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.middleware.ExeceptionMiddleware'
]
TEAMS_CHANNEL_URL = os.envion.get("TEAMS_CHANNEL_URL")
Generate an exeception intentionally in your django application and check log in your teams channel.
Have a great day!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for exeception-to-teams-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a7b60293e4f95750b4eda96eb74cddf5348090f87f26901acc70e92dd3606bc |
|
MD5 | 51f8246b7a8109122c214c567af2c0d0 |
|
BLAKE2b-256 | 19c82524cdee32c71104c3dab00f68a65cc1b52c22bc400e5c04919766131129 |
Close
Hashes for exeception_to_teams-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb1dcb7edb6906d1e086a8ffb69f8d8e1eba99d7bba193919d041e6b51a6e6f0 |
|
MD5 | 09c0dbf68c79eb385fcd6ef004ce8407 |
|
BLAKE2b-256 | 254436a082794fc292b86d5982ac2076c8b823335f7334615eb964ea47dce4ae |