Skip to main content

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


Download files

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

Source Distribution

django_gargoyle_sentinel-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_gargoyle_sentinel-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file django_gargoyle_sentinel-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django_gargoyle_sentinel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1cbaa09d6a01da11f0672857df4c01d5161c4e550cd5e6287a95f682d8a8ed08
MD5 e934df52730f8f3ebc6e1a919085f9c3
BLAKE2b-256 a46045f99c03c09a3c049461d4034710c47bf8e680023ce52232ad9c3fa1021a

See more details on using hashes here.

File details

Details for the file django_gargoyle_sentinel-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_gargoyle_sentinel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb8ce20a525911fb400658e4ecdccdac438a4176acb6b40bfba2753124870318
MD5 a4f266f70aeec04a92bd3a80ac118ae5
BLAKE2b-256 bcd9df72dcae219d82468a70af51810476900ba6e03c333ae9751d670d1b8745

See more details on using hashes here.

Supported by

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