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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d060754f393a069b8d99a7b255bd9500ca44c61bfcd998cd2543b75bd1f704a3 |
|
MD5 | 7ebbe9533a9c30ee775edcf7d3b68f2e |
|
BLAKE2b-256 | 0af69c30382d682ed008c292e1b7c21b8aed95cbea9e961b03d166f0f2a1703e |
Close
Hashes for django_discord_integration-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 078419e6df06ead499deaa31a94dab1c163c344902ae9e4f78a614877ecd8dc1 |
|
MD5 | 79ebad680adca3f6c25c164f09ab4c35 |
|
BLAKE2b-256 | d9ff41397e665345cde4772ae57a6568e11b3ea854e65355810360e47709680b |