我想改变我现有的项目从sqlite到django的mysql,但它不允许。你知道吗
我已经安装了mysqlclient和mysql connector python。你知道吗
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'TestPro',
'USER' : 'urvi',
'PASSWORD' : 'test',
'HOST' : '',
'PORT' : '',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
'charset': 'utf8mb4',
}
}
}
目前没有回答
相关问题 更多 >
编程相关推荐