Installation Install django-pghistory with: pip3 install django-pghistory After this, add pghistory and pgtrigger to the INSTALLED_APPS setting of your Django project.