Django==1.8.1
django-mssql==1.6.2
django-pyodbc==0.2.8
pyodbc==3.0.10
pywin32==219
sql-server.pyodbc==1.0
以下是我的settings.py文件中的内容。
DATABASES = {
'default': {
'NAME': 'db_name',
'ENGINE': 'sqlserver_ado',
'HOST': 'host_name\\SQLEXPRESS',
'USER': 'user_name',
'PASSWORD': 'password',
}
}
但是当我尝试迁移它时,我遇到了以下错误。我有什么遗漏吗?
django.core.exceptions.ImproperlyConfigured: 'sqlserver_ado' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'base', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'
Error was: cannot import name 'BaseDatabaseWrapper'