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.0 through 3.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.3.tar.gz
(201.4 kB
view hashes)
Built Distribution
Close
Hashes for django-admin-watchdog-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f417932af7b903df43b80aa224706335c6f26118f4ee3b8c442551cef5f9dd7f |
|
MD5 | 28880b25250658344367fca76edaea3c |
|
BLAKE2b-256 | eb32e5fc2c23d5859b681ad75b6817064f94b3f2944a5737c38c72d09c7b8284 |
Close
Hashes for django_admin_watchdog-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cd944c3cbff799f38f37532239c4417086220b35eb3ed25e89502b821a7437d |
|
MD5 | a65c94c1631f13656e969c80276f47cc |
|
BLAKE2b-256 | 7fef61c4f1fc6c393238d4976d93001aa3d83d1724a73a84dca28be6560c3a0d |