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
django-admin-watchdog-1.0.4.tar.gz
(201.4 kB
view hashes)
Built Distribution
Close
Hashes for django-admin-watchdog-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 400d1ef3d94f927cdad50ed6f3df216c0b36d71bbbc525a4dcb31d1022460d3b |
|
MD5 | 4818d6d8b0dfc07b7afa8d9da7257749 |
|
BLAKE2b-256 | d5d2d79546e6c481500f102c550869130c3e04d9c839f20069721bede28416b8 |
Close
Hashes for django_admin_watchdog-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f2fdd80a46e713ac84ea1a582146a1eae6b9c04420446f88e75b0f86bd34223 |
|
MD5 | 6a874e2490a870eae6af73cac6db5d3c |
|
BLAKE2b-256 | d93d0cace37c1c865e19bcd487008e4c0834d89c7d44c63e888722f1f9fd60ef |