django-oracle

Oracle connection string with at sign @ in pasword

别说谁变了你拦得住时间么 提交于 2019-12-20 02:44:08
问题 I have a code that connect to oracle using connection string: conn = cx_Oracle.connect('username/password@server:port/services') But the problem is my password contain @ character so it may become conn = cx_Oracle.connect('username/p@ssword@server:port/services') it return DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified I use Django with Oracle with this settings DATABASES = { 'default': { 'ENGINE': 'django.db.backends.oracle', 'NAME': 'Services', 'USER':

Django oracle db settings

﹥>﹥吖頭↗ 提交于 2019-12-02 17:09:29
问题 I just want to connect my local oracle db with my django project but my database credential is not working. Actually, I'm able to connect my oracle database via sql developer with that credential: I just used that credential in django settings_py like that DATABASES = { 'default': { 'ENGINE': 'django.db.backends.oracle', 'NAME': 'INTERNAL', 'USER': 'system', 'PASSWORD': 'oracle', 'HOST':'localhost/xe', 'PORT':'1521' } } and error is: Traceback (most recent call last): web_1 | File "manage.py"

Django oracle db settings

孤人 提交于 2019-12-02 11:46:08
I just want to connect my local oracle db with my django project but my database credential is not working. Actually, I'm able to connect my oracle database via sql developer with that credential: I just used that credential in django settings_py like that DATABASES = { 'default': { 'ENGINE': 'django.db.backends.oracle', 'NAME': 'INTERNAL', 'USER': 'system', 'PASSWORD': 'oracle', 'HOST':'localhost/xe', 'PORT':'1521' } } and error is: Traceback (most recent call last): web_1 | File "manage.py", line 22, in <module> web_1 | execute_from_command_line(sys.argv) web_1 | File "/usr/local/lib/python3