如题。从网上搜的测试连接oracle是否成功的方法,命令和报错如下:
D:\MMP\mmp\project\tag\server\MMP>python manage.py shell
Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.db import connection
>>> cursor = cnnection.cursor()
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'cnnection' is not defined
求指教:
1、这个问题咋解决呢?
2、我django和oracle都在我同一台电脑上。如果我要连oracle的话,可以不装oracle的客户端,只装oracle就行了吗?