Skip to main content

Discord integration for Django, supporting error reporting via webhooks.

Project description

Django Discord Integration

Discord integration for Django, supporting error reporting via webhooks.

This app comes with two message handlers: DiscordMessageHandler and SimpleDiscordMessageHandler. DiscordMessageHandler sends all the information related to the message, such as a traceback if there is one, while the SimpleDiscordMessageHandler only sends the title.

Installation

$ pip install django-discord-integration

In your settings.py, add the following:

INSTALLED_APPS = (
    'discord_integration',
    'solo',
    ...
)

Next, migrate the database:

$ python manage.py migrate

Finally, set the Discord webhook URL in the Django admin, as well as the bot username and avatar URL if necessary.

Sample Logging Configuration

LOGGING = {
    'handlers': {
        'discord_integration': {
            'level': 'ERROR',
            'class': 'discord_integration.log.DiscordMessageHandler',
        },
    },
    'loggers': {
        'handlers': ['discord_integration'],
    },
}

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-discord-integration-1.0.6.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

django_discord_integration-1.0.6-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file django-discord-integration-1.0.6.tar.gz.

File metadata

  • Download URL: django-discord-integration-1.0.6.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for django-discord-integration-1.0.6.tar.gz
Algorithm Hash digest
SHA256 d63b9e10985b6d4568ab10b40c5fdbe60e6a9f859215b56657e425ef71996d67
MD5 e20877b5cf1347a32707cef1122866a3
BLAKE2b-256 dd2c1416ea271825b6346e6a2f766c9deb732749504830fc31d06e7a8f302333

See more details on using hashes here.

File details

Details for the file django_discord_integration-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: django_discord_integration-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for django_discord_integration-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b689b1c4bc4d397ee73da516a543fb7ba579f5d5dc75e157e05f6fdf25208e5c
MD5 b236c098ff2fd4df7ec27f2bc9b92479
BLAKE2b-256 bbfb12e018890bdaefd60c39d7004215db04dde8c91e5a203315ae5113ed98c7

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