Skip to main content

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',
    ...
)

Next, migrate the database:

$ python manage.py migrate

Finally, create a Discord integration object in the Django admin site. Set the Discord webhook URL as well as the bot username and avatar URL if necessary. You can create multiple objects to direct different logs to different channels. The default object should the name default.

Sample Logging Configuration

LOGGING = {
    'handlers': {
        'discord_integration': {
            'level': 'ERROR',
            'class': 'discord_integration.log.DiscordMessageHandler',
            'model_name': 'default',  # OPTIONAL: specify a name to use a different integration configuration.
        },
    },
    'loggers': {
        'handlers': ['discord_integration'],
    },
}

Metadata

Release files for django-discord-integration 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-discord-integration 1.3.0
File Size Uploaded
django_discord_integration-1.3.0.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-discord-integration 1.3.0
File Interpreter ABI Platform
django_discord_integration-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.9 kB

Release files / django_discord_integration-1.3.0.tar.gz

Download URL django_discord_integration-1.3.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7e0bfb5fd6a6fd11b04ef1f14ec20d75e5d50fb0e87e391e1311dd1f203ab967
BLAKE2b-256 checksum
How to use checksums
2533a83fc43a6d34b6add5397a7c54d53e5653878446b56b7a8d02a5af85a84d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / django_discord_integration-1.3.0-py3-none-any.whl

Download URL django_discord_integration-1.3.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3e5747ba7797df56a6cf080324be6880adfb4a3c690bad1a4624ddaf8000cc1
BLAKE2b-256 checksum
How to use checksums
e277f216d0aa6bd7b6101773bcd6156f8986fb773d821d5998303318ba846a35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

1 release file

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page