Issue with postgres gin indexes

I figured it out. You must make sure that django.contrib.postgres is part of your INSTALLED_APPS which will work on Django 4.2 as well.

It is documented

To use it, you need to add 'django.contrib.postgres' in your INSTALLED_APPS.

But it’s quite easy to miss.

Doing so ensures that this code gets registered.

I’d appreciate if you could chime in on this ticket about the exact same problem to support the idea of failing more loudly when such a mis-configuration is detected. There’s a clear solution on how to implement it but having someone else testimony could be valuable.