Installing hstore extension in django nose tests

django, hstore, nose, postgresql, python

Solution

This is a non-issue: The best way to fix this is to apply the hstore extension on the default database, `template1`

`psql -d template1 -c 'create extension hstore;'`

Reference: How to create a new database with the hstore extension already installed?

Problem

I've installed the hstore extension successfully, and everything works when I `syncdb`. (I'm using djorm-ext-hstore) However, nose creates a new temp database to run tests in, and hstore is not installed in it. I need to run `CREATE EXTENSION HSTORE;` on the test db right before nose syncs the db, but I can't find any info on how to do that. Any ideas?

Original source

Related problems