I've created a user, and given it the required privileges - i.e.
ALTER USER myuser CREATEDB
I can log in to psql as this user and create a database, however when I try to run django tests, I get "permission denied":
$ ./manage.py test
Creating test database for alias 'default'...
Got an error creating the test database: permission denied to create database
I have no such issues in another django project running off the same postgres instance, so something about my django project must be causing the error. The python and django versions are identical.
Any ideas?
myuser
when running tests. Maybe you should updateDATABASES
setting in settings.py for unit testsmyuser
.