Installation
$ [sudo] pip install django-postgres-vacuum
settings.py
INSTALLED_APPS+=['django_postgres_vacuum']
Examples
from django.core.management import call_command
call_command('vacuum')
call_command('vacuum_full')
$ python manage.py vacuum
$ python manage.py vacuum_full