A simple Django app to register logs in admin backoffice.
Project description
Admin watchdog
Admin watchdog is a simple Django app to register and view logs in the django admin backoffice.
Tested with Django 2.2 through 4.0.
Quick start
Add “admin_watchdog” to your INSTALLED_APPS settings.
Run python manage.py migrate to create the admin watchdog model.
Edit your LOGGING settings to use the admin watchdog handler. For example, to replace the default mail handler:
LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'admin_watchdog': { 'level': 'ERROR', 'class': 'admin_watchdog.handlers.AdminWatchdogHandler', } }, 'loggers': { 'django.request': { 'handlers': ['admin_watchdog'], 'level': 'ERROR', 'propagate': False, } } }
Your error logs will now be registered. Visit your admin backoffice to see the log entries.
You can run the tests by doing make test.
Screenshots
LICENSE
GPLv3+
Project details
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
File details
Details for the file django-admin-watchdog-1.0.4.tar.gz
.
File metadata
- Download URL: django-admin-watchdog-1.0.4.tar.gz
- Upload date:
- Size: 201.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 400d1ef3d94f927cdad50ed6f3df216c0b36d71bbbc525a4dcb31d1022460d3b |
|
MD5 | 4818d6d8b0dfc07b7afa8d9da7257749 |
|
BLAKE2b-256 | d5d2d79546e6c481500f102c550869130c3e04d9c839f20069721bede28416b8 |
File details
Details for the file django_admin_watchdog-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: django_admin_watchdog-1.0.4-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f2fdd80a46e713ac84ea1a582146a1eae6b9c04420446f88e75b0f86bd34223 |
|
MD5 | 6a874e2490a870eae6af73cac6db5d3c |
|
BLAKE2b-256 | d93d0cace37c1c865e19bcd487008e4c0834d89c7d44c63e888722f1f9fd60ef |