Discord integration for Django, supporting error reporting via webhooks.
Project description
Django Discord Integration
Discord integration for Django, supporting error reporting via webhooks.
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
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
Close
Hashes for django-discord-integration-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a8b8ec19e23a8ee44f1fa4c197a590287a531f3ee8f963c8f9984c2298fd87 |
|
MD5 | ed87213e3d40cdeba2e7c5060902e8f9 |
|
BLAKE2b-256 | fa5ecd774b4cfd1debe6242e8af15486b88466198ff97620f3d527409123c954 |
Close
Hashes for django_discord_integration-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9663c1424b732f01d29e5b03c5d19b9a617df5a008ea915af64d9d5506ec2e62 |
|
MD5 | 286dd2d757e8b34050a200ad61a1934d |
|
BLAKE2b-256 | de7710c2dba291db7fcfe4d4f051508cf04a683150c3ec11968f6f29111e41af |