Skip to main content

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.10

  • 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.

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-0.8.0.tar.gz (8.6 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-0.8.0-py2.py3-none-any.whl (14.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for django-timeline-logger-0.8.0.tar.gz
Algorithm Hash digest
SHA256 85abe25db03946f5a05bf5e124396eccada7b43375582c80c2d7affaff542fec
MD5 a50ab97a40402aea0d52a1e919000aed
BLAKE2b-256 9510e2731deb011b5a74fb5b6491208d8850b0c3b24bc695f804b828133987f5

See more details on using hashes here.

File details

Details for the file django_timeline_logger-0.8.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_timeline_logger-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b8e3e0c1c5786db957bb9f07af7588585208902c94d4bd60ef6dc21d8dc4376d
MD5 df1064fbb777a0848d4801406226f44e
BLAKE2b-256 774eb77ef3c0cbef082f2dfe320c0312c9874bea62302ddec4a7359f704c6ccc

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

2.0.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1

2 files

1.0

2 files

This release

0.8.0 This release

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