Debugmate client package
Project description
Debugmate Integration for Django
This guide explains how to integrate debugmate-python into your Django application to capture logs and exceptions.
Installation
To install the debugmate-python package, run the following command:
pip install -i https://pypi.org/simple/ debugmate
Configuration in settings.py
Follow the steps below to configure the logger and middleware in your settings.py file.
1. Logger Configuration
Add the following logging configurations to your settings.py file to capture errors and send them to the Debugmate service.
import os
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'root': {
'level': 'ERROR',
'handlers': ['debugmate'],
},
'handlers': {
'debugmate': {
'level': 'INFO',
'class': 'debugmate.handlers.debugmate_handler.DebugmateHandler',
},
}
}
DEBUGMATE_TOKEN = os.getenv('DEBUGMATE_TOKEN', '')
DEBUGMATE_DOMAIN = os.getenv('DEBUGMATE_DOMAIN', '')
2. Add the Middleware
In your settings.py, add the DebugmateMiddleware to the list of middlewares.
MIDDLEWARE = [
'debugmate.django.middleware.DebugmateMiddleware',
# Other middlewares...
]
3. Running the Application
With the above configuration, Debugmate integration is ready. Your Django application will now send logs and exceptions to the Debugmate service.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file debugmate-0.0.1.tar.gz.
File metadata
- Download URL: debugmate-0.0.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aa2b35baeb4c826c69f97062f7ef36b07d1fa722831cff73402e4850d282981
|
|
| MD5 |
8bad11e9280c116b2a1a90b1e70203d9
|
|
| BLAKE2b-256 |
840c21bb8cdb75fa40794fcd890539bec59af6234d70a43ef71a95d0fa5edb7d
|
File details
Details for the file debugmate-0.0.1-py3-none-any.whl.
File metadata
- Download URL: debugmate-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d62d9092cd7cefecc33c67b0da8b390aa7c4f7a0a9cfd1577f3524c1c9875853
|
|
| MD5 |
adbb65adf95dabc10483aac6ef453fb8
|
|
| BLAKE2b-256 |
ca4d6ace5ca66896aafda5fcfc0e49657afd97e550e77bb2b598b487c5e07386
|