Django Pghistory

screenshot of Django Pghistory
django

Track historical events to Django models using Postgres triggers.

Overview:

django-pghistory is a tool that tracks changes to Django models using Postgres triggers. It offers reliable history tracking without requiring changes to the application code. This tool provides structured history models that mirror the fields of the models, allowing grouping of history with additional context like the logged-in user. The configuration options available cater to various application needs and focus on performance and scalability. Additionally, django-pghistory includes an admin integration and middleware for convenience.

Features:

  • Reliable History Tracking: Tracks changes to Django models using Postgres triggers.
  • Structured History Models: Mirror the fields of the original models.
  • Additional Context: Provides grouping of history with context like the logged-in user.
  • Configuration Options: Allows customization of history tracking for performance and scale.
  • Admin Integration: Includes an admin integration and middleware for easy use.
  • Selective Field Tracking: Can track a subset of fields and store events conditionally based on field transitions.
  • Free-form Context: Users can store application context in event metadata without additional database queries.

Summary:

django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.