I\'m trying to run unit tests in Django, and it creates a new database. The database has postgis extensions and when I regularly create the database, I use \"CREATE ExTENSIO
The Django documentation on postgis has some information on setting up user privileges.
In the worst case you can create a new superuser:
$ createuser --superuser
or alter an existing user's role:
postgres# ALTER ROLE SUPERUSER;