使用 Django 进行 Oracle 数据库配置,并在迁移应用程序时遇到错误
django.db.migrations.exceptions.MigrationSchemaMissing:无法
创建 dja ngo_migrations 表(ORA-02000:始终缺失
关键词)
application environment
1.windows10
2.Python 3.6.x
3.Django 2.0.2
4.oracle 11g XE
in settins.py file
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.oracle',
'NAME': 'xe',
'USER': 'abc',
'PASSWORD':'xxxx',
'HOST':'localhost',
'PORT':"1521",
}
删除上述代码中的 self.cursor.numbersAsStrings = True
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)