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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17c087e8366fd7c8b855684ca56573e540a1820b813f449ddd4928df27a92b0 |
|
MD5 | 9d8f715d3470d9e1efef629432149faf |
|
BLAKE2b-256 | 232848af18023fc869dffc61e14a1a672159abe8d293c2270cb05f0377158325 |
Close
Hashes for django_discord_integration-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108daf631db4ddecb35228af14941bc9c1a561ddacabbf899f875e68a8d71325 |
|
MD5 | 29efe2496a5e1dd498701ebb25f911c5 |
|
BLAKE2b-256 | 7c060376346d67b5a7475c8f1781684d6b2e7506d025564dfd8c493b1b919503 |