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.
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.2.tar.gz
(200.8 kB
view hashes)
Close
Hashes for django-admin-watchdog-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc815316339abeaa5fa9fb6c872eabf268981810804cebc15f02a3b29e73596d |
|
MD5 | 318a74be9925cb8557f088099304d3ec |
|
BLAKE2b-256 | a44222f333c836aaa0a3fa6c09b2872f5e521db630b00a4e2b438162ae7ab967 |