-1đź‘Ť
Super late but… For the new people asking the same question:
Django has its own function to create extensions using the migrations (which are executed before the tests), and the example is the HStore
However…
For most extensions, this requires a database user with superuser privileges. If the Django database user doesn’t have the appropriate privileges, you’ll have to create the extension outside of Django migrations with a user that has them. In that case, connect to your Django database and run the query CREATE EXTENSION IF NOT EXISTS hstore;.
Source:stackexchange.com