如何在 django 中连接 Salesforce 数据库?使用 Python 执行 API 调用?
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'salesforce_db',
},
'salesforce': {
'ENGINE': 'salesforce.backend',
"CONSUMER_KEY" : 'EDIT: your key you get.......................',
"CONSUMER_SECRET" : 'EDIT secret you get',
'USER': 'EDIT your@user.login.name',
'PASSWORD': 'EDIT password + security_token',
'HOST': 'https://login.salesforce.com',
}
}
SALESFORCE_QUERY_TIMEOUT= (4, 15)