title: django.db.utils.ProgrammingError: type "hstore" does not exist
body: <p>Hi guys so I know this question has been asked many times but the solution that have been provided doesn't seem to fix the source of my problem.</p>
  <p>Based on what I've seen the solution is to run <code>create extension hstore</code>.</p>
  <p>However, I get the error <code>django.db.utils.ProgrammingError: type &quot;hstore&quot; does not exist</code> when I'm trying to run a django test, ie <code>python manage.py test test_function</code></p>
  <p>I'm not familiar with django tests but from what I'm seeing with the codebase I am working with is that the django test is creating a test database when I run the django test command.</p>
  <p>When I checkout what extensions are available with the test database with <code>\dx</code> I see that it does not have <code>hstore</code>. If I run <code>create extension hstore</code> then the hstore extension gets created. Problem is that whenever I rerun the django test, <code>python manage.py test test_function</code> it tells me the test database already exists and I need to delete it first otherwise the command exits. By deleting the database the extension that just got added also gets removed thus when I run <code>python manage.py test test_function</code> again I end up with the same error.</p>
  <p>How do I get rid of the error? Thank you.</p>