DATABASES = {
'default': {
#'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'django.db.backends.oracle', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'ora8', # Or path to database file if using sqlite3.
'USER': 'delphitest', # Not used with sqlite3.
'PASSWORD': 'delphitestpass', # Not used with sqlite3.
'HOST': '172.17.8.5', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '1521', # Set to empty string for default. Not used with sqlite3.
}
django oracle數據庫設置
最新推荐文章于 2023-03-31 18:43:48 发布
本文介绍了一个使用Django框架配置Oracle数据库的具体示例。详细展示了如何设置数据库引擎、名称、用户、密码、主机及端口等参数。
775

被折叠的 条评论
为什么被折叠?



