添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
年轻有为的人字拖  ·  MYSQL、SQL ...·  10 月前    · 
温文尔雅的领带  ·  Threejs-三维资源站·  11 月前    · 

This project uses django.db.models.JSONField , and as such, you need:

  • at least Django 3.2+

  • a database supporting django.db.models.JSONField

  • 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 %}
        {% endfor %}
    {% 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