Django连接Oracle数据库配置
2019-11-15

Django项目中,settings.py文件中:service_name  DATABASES = {    "default": {      "ENGINE": "django.db.backends.oracle",      "NAME": "IP:端口号/service_name",      "USER": "用户名",      "PASSWORD": "密码",    }  } SID  DATABASES = {    "default": {      "ENGINE": "django.db.backends.oracle",      "NAME": "数据库SID",      "USER": "用户名",      "PASSWORD": "密码",      "HOST":"IP",      "PORT":"端口号"    }  }