InstallationΒΆ
Install the package from PyPi:
$ pip install django-postgres-extra
Add
django.contrib.postgres
and psqlextra` to yourINSTALLED_APPS
:INSTALLED_APPS = [ ... "django.contrib.postgres", "psqlextra", ]
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.