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