InstallationΒΆ

  1. Install the package from PyPi:

    $ pip install django-postgres-extra
    
  2. Add django.contrib.postgres and psqlextra` to your INSTALLED_APPS:

    INSTALLED_APPS = [
        ...
        "django.contrib.postgres",
        "psqlextra",
    ]
    
  3. Set the database engine to psqlextra.backend:

    DATABASES = {
        "default": {
            ...
            "ENGINE": "psqlextra.backend",
        ],
    }
    

    Note

    Already using a custom back-end? Set POSTGRES_EXTRA_DB_BACKEND_BASE to your custom back-end.