gpt4 book ai didi

python - 使用 Oracle 11g 数据库问题配置 django

转载 作者:行者123 更新时间:2023-11-28 20:14:27 25 4
gpt4 key购买 nike

使用 Django 配置 Oracle 数据库并在迁移应用程序时遇到错误

django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the dja ngo_migrations table (ORA-02000: missing ALWAYS keyword)

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

关于python - 使用 Oracle 11g 数据库问题配置 django,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49229664/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com