Well I have already grant the user to 'CREATEDB'.
but when I run the test using python manage.py test
I got this error,
Creating test database for alias 'default'... Got an error creating
the test database: permission denied to create database
This is my settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'my_db',
'USER': 'my_admin',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '',
'TEST' : {
'NAME': 'test_my_db'
}
} }