Can';t在Python/Django应用程序上运行测试
我已经授予用户“CREATEDB” 但是当我使用Can';t在Python/Django应用程序上运行测试,python,django,Python,Django,我已经授予用户“CREATEDB” 但是当我使用python manage.py test运行测试时 我犯了这个错误 Creating test database for alias 'default'... Got an error creating the test database: permission denied to create database 这是我的设置.py DATABASES = { 'default': { 'ENGINE': 'django
python manage.py test运行测试时
我犯了这个错误
Creating test database for alias 'default'... Got an error creating
the test database: permission denied to create database
这是我的设置.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'my_db',
'USER': 'my_admin',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '',
'TEST' : {
'NAME': 'test_my_db'
}
} }
我们可能需要知道的事情:1)什么后端?2) 您给数据库用户的授权是什么?3) 它能否连接到默认数据库(即,这里是否存在密码问题)?您想要什么?posible dublicate[python manage.py migrate工作吗?