cx_oracle をインストールし、inspectdb を実行しました。出力が得られないようですか?誰か助けてくれませんか?Oracle で inspectdb を使用する際に既知の問題はありますか?
以下はコマンドとsettings.pyです。
python manage.py inspectdb --database xxx_db
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [appname]'
# into your database.
from django.db import models
設定.py
DATABASES = {
'xxx_db': {
'ENGINE': 'django.db.backends.oracle',
'NAME': 'abc',
'USER': 'abc_read',
'PASSWORD': 'abc_read',
'HOST': 'apps.domain.com',
'PORT': 'xxxx'
},
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'aaaa',
'USER': 'aaaa',
'PASSWORD': 'xxxx',
'HOST': '/tmp/mysql.sock',
'PORT': ''
}
}