Django AdminLogViewer
Allows the viewing and download of specific log files in real time directly from the Django admin interface.
Inspired by Django LogTailer
Features:
- log files will be shown incrementally in "follow mode"
- the whole log file can be downloaded for later inspection
- no Django Models are installed
- the list of viewable log files is hardcoded in Django settings for security reasons
Quick start
- Install Django LogViewer:
pip install django-admin-logviewer
- Add it to your
INSTALLED_APPS:
INSTALLED_APPS = (
...
'logviewer',
...
)
- Add Django LogViewer's URL patterns:
urlpatterns = [
...
path('logviewer/', include('logviewer.urls', namespace='logviewer')),
...
]
Then visit:
http://127.0.0.1:8000/logviewer/logs
Settings
| Setting | Purpose | Default |
|---|---|---|
| LOGVIEWER_LOGS | list of log files' paths | [] |
| LOGVIEWER_REFRESH_INTERVAL | in [ms] | 1000 |
| LOGVIEWER_INITIAL_NUMBER_OF_CHARS | initial n. of chars read from the tail of the existing file | 2048 |
Screenshots
Metadata
Release files for django-admin-logviewer 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_logviewer-0.1.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / django_admin_logviewer-0.1.5-py2.py3-none-any.whl
| Download URL | django_admin_logviewer-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
37f5e16510535eb84336295a86670da12fba13f63c9d3ef24d2e409357def7ed
|
|
BLAKE2b-256 checksum How to use checksums |
3fea95f6986012a014339be0ce75d059c94dbc31f132419a7b2320605e33f32b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for django-admin-logviewer 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.