django-timeline-logger
A reusable Django app to log actions and display them in a timeline
Prerequisites
This project uses django.contrib.postgres.JSONField, and as such, you need:
at least Django 1.11
at least PostgreSQL 9.4
at least psycopg2 2.5.4
Installation
Install from PyPI by running
pip install django-timeline-logger
Add 'timeline_logger' to your INSTALLED_APPS.
Run the migrations:
python manage.py migrate
Usage in templates
A custom template tag is provided to render the message of a log entry, for example:
{% extends "timeline_logger/base.html" %}
{% load timeline %}
{% block timeline %}
<ul class="timeline__list col__22--vw">
{% for log in object_list %}
<li class="timeline__entry">
{% render_message log in_view=True %}
</li>
{% endfor %}
</ul>
{% endblock timeline %}
This way, you can pass extra context to the template used for the log object.
Documentation
The extended documentation is available on Read the Docs.
Metadata
Release files for django-timeline-logger 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-timeline-logger-1.0.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_timeline_logger-1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 24.4 kB
Release files / django-timeline-logger-1.0.tar.gz
| Download URL | django-timeline-logger-1.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c7eb4ccfad728e24eef0eff58f2ac22d14ba90b5e38a3c8749403c0aca5ed53
|
|
BLAKE2b-256 checksum How to use checksums |
2f8f2e976fee6403398bc07c544b36fc08d447260d5d7ca60f2e6115e74f15e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_timeline_logger-1.0-py2.py3-none-any.whl
| Download URL | django_timeline_logger-1.0-py2.py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b0e37153819f0fba9398367b206536f48601811fd8bcc167069cb130b61e7594
|
|
BLAKE2b-256 checksum How to use checksums |
75032e0ec06599425bd422fe838505b4a3a0517692abf455dc14789f0cf74efb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |