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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e5010f67d107d5907a4c93617987a6ed095f1d6f2d3cd523420fa40948c399b |
|
MD5 | ae57b4bf13dc92948cc41742d2e50118 |
|
BLAKE2b-256 | de0ad4e6704aedd0c65cea52f45d115c1d6ac77bd4cd04b83728afaea1c26e4c |
Close
Hashes for django_discord_integration-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ac089451b3bf1a33c269a08c9f4a2a0e17ca07e02d9376236be59c7af784aed |
|
MD5 | 23fad88f7d3d404d286585fcd3877d0a |
|
BLAKE2b-256 | d0525becc90e3db664c0d0f12b4c2478318964a2659f06e20913142d6c180446 |