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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_discord_integration-1.3.0.tar.gz | 18.0 kB | Without provenance | Details for django_discord_integration-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_discord_integration-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for django_discord_integration-1.3.0-py3-none-any.whl |
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
|
Security for django-discord-integration 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.