Django alert about relevant messages via Telegram.
Project description
django_gargoyle_sentinel CHANGELOG
django_gargoyle_sentinel It's a module for alerting relevant security and administration messages via Telegram.
Quick start
1. Add django_gargoyle_sentinel to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...,
"django_gargoyle_sentinel",
]
2. Add this configs in settings.py:
TELEGRAM_ALERT_TOKEN="TELEGRAM_CHATBOT_TOKEN"
TELEGRAM_ALERT_DESTINY="GROUP ID DESTINY"
OVERRIDE_SYSTEM_ALERT = True ## IF USED WITH django_subdomain_tenancy
Standalone usage
1. Import
from django_gargoyle_sentinel.utils.system_alert import system_alert.py
2. Using (I recommend placing it in important spots, such as error handlers (try/except) and other relevant locations)
system_alert(request, message)
request It's being used to reveal the author's IP.
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 django_gargoyle_sentinel-0.1.0.tar.gz.
File metadata
- Download URL: django_gargoyle_sentinel-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cbaa09d6a01da11f0672857df4c01d5161c4e550cd5e6287a95f682d8a8ed08
|
|
| MD5 |
e934df52730f8f3ebc6e1a919085f9c3
|
|
| BLAKE2b-256 |
a46045f99c03c09a3c049461d4034710c47bf8e680023ce52232ad9c3fa1021a
|
File details
Details for the file django_gargoyle_sentinel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_gargoyle_sentinel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb8ce20a525911fb400658e4ecdccdac438a4176acb6b40bfba2753124870318
|
|
| MD5 |
a4f266f70aeec04a92bd3a80ac118ae5
|
|
| BLAKE2b-256 |
bcd9df72dcae219d82468a70af51810476900ba6e03c333ae9751d670d1b8745
|