Skip to main content

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

Build status Code quality checks Coverage status black

python-versions django-versions pypi-version

Prerequisites

This project uses django.contrib.postgres.JSONField, and as such, you need:

  • at least Django 2.2+

  • at least PostgreSQL 10

  • at least psycopg2 2.5.4

  • A modern setuptools version

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-timeline-logger-2.0.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_timeline_logger-2.0.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file django-timeline-logger-2.0.0.tar.gz.

File metadata

  • Download URL: django-timeline-logger-2.0.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for django-timeline-logger-2.0.0.tar.gz
Algorithm Hash digest
SHA256 57dc2fb3d05450ccc90381e173ba5b4ffb145507e40a75e10a28b5684b89676e
MD5 01a74f41a6e6a8c26f011cc3a308b672
BLAKE2b-256 383b22658f5a0d539afce33e9fb6e77bdfdccfe0ced2a2529a75f05487d48ad2

See more details on using hashes here.

File details

Details for the file django_timeline_logger-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_timeline_logger-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for django_timeline_logger-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02948dc5d24d749ced1867f1a825b783f26a0d059b7a8bf5f544122f7f18d64f
MD5 214e67a35aa0cd67a6fbd2f0c3f5cbd7
BLAKE2b-256 f8c22869c7e7c0865ca2e9172aab473489a328a72a7efc75c15037b5e05496ee

See more details on using hashes here.

Release history Release notifications | RSS feed

6.0.0

2 files

5.0.0

2 files

4.0.0

2 files

3.0.0

2 files

2.1.0

2 files

This release

2.0.0 This release

2 files

1.1.2

2 files

1.1.1

2 files

1.1

2 files

1.0

2 files

0.8.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

1 file

0.3.1

2 files

0.3

2 files

0.2.1

1 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