Skip to main content

Generic event logger for Django models.

Project description

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


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


Install from PyPI by running

pip install django-timeline-logger

Add 'timeline_logger' to your INSTALLED_APPS.

Run the migrations:

python 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 %}
    {% endfor %}
{% endblock timeline %}

This way, you can pass extra context to the template used for the log object.


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.

Files for django-timeline-logger, version 1.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django_timeline_logger-1.1.2-py2.py3-none-any.whl (18.2 kB) File type Wheel Python version 3.6 Upload date Hashes View hashes
Filename, size django-timeline-logger-1.1.2.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page