注意,本文是作者自己备份用,django oracle相关技术资料,请参考 oracle-django总结
https://stackoverflow.com/questions/4914775/django-inspectdb-issue-using-oracle-database
https://blog.csdn.net/sky6even/article/details/102506068
因为 python2.0支持oracl11g, 一部分人的做法如下
这个搭配可以:
I have a similar setup at the top of my settings.py to set my environment variables for my oracle driver (Oracle 11.2). Not sure if this will help in your specific case.
### SETTING UP THE ENVIRONENT FOR OUR ORACLE RPM
import os
os.putenv('ORACLE_HOME', '/.../oracle/11.2')
os.putenv('LD_LIBRARY_PATH', '/.../oracle/11.2/lib')
I have had no issues with manage.py inspectdb
(Django 1.2.7 and Django 1.4) on Oracle 11.2.