I'm trying to test my Django apps which run on a postgis database, by following this doc:
http://docs.djangoproject.com/en/dev/topics/testing/
Normally I create a new database by copying a template:
(as user postgres)
createdb -T template_postgis -O lizard test_geodjango2
When I run ./manage.py test, I get the following message:
Creating test database... Got an error creating the test database: permission denied to create database Type 'yes' if you would like to try deleting the test database 'test_geodjango2', or 'no' to cancel:
What's the best way to let the system create the database?