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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file exeception-to-teams-0.0.3.tar.gz.
File metadata
- Download URL: exeception-to-teams-0.0.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d957d2ef224f7fecfdd6bc7eb5cd5e2dcb3b7484c52514ab7dd540140e71c8e
|
|
| MD5 |
519e011776eb2c8033b62b3af8042196
|
|
| BLAKE2b-256 |
d3a4d00650566463e4cfe17b67e6324e50278c2c8262570f103d9c82a1c12be8
|
File details
Details for the file exeception_to_teams-0.0.3-py3-none-any.whl.
File metadata
- Download URL: exeception_to_teams-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82dabcfeddb0f242b6ad89cdd2059066dec2decbed344b2c69180b4ac010efc0
|
|
| MD5 |
a07661279c04960dda74d3796477dc32
|
|
| BLAKE2b-256 |
884d6ae78a43718350dc6131f7aa5df5cdfbc2d9bb40be84ada68d6e1cab9600
|