Skip to main content

django-timeline-logger

A reusable Django app to log actions and display them in a timeline

https://travis-ci.org/maykinmedia/django-timeline-logger.svg?branch=master https://codecov.io/gh/maykinmedia/django-timeline-logger/branch/develop/graph/badge.svg https://badge.fury.io/py/django-timeline-logger.svg

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)

Source distribution for django-timeline-logger 1.0
File Size Uploaded
django-timeline-logger-1.0.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-timeline-logger 1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

6.0.0

2 release files

5.0.0

2 release files

4.0.0

2 release files

3.0.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1

2 release files

This release

1.0 This release

2 release files

0.8.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

1 release file

0.3.1

2 release files

0.3

2 release files

0.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page