【发布时间】:2011-08-31 17:07:07
【问题描述】:
我试图用这个 wsgi.py 在 dotcloud 上运行一个金字塔+mongodb
import os, sys
from paste.deploy import loadapp
current_dir = os.path.dirname(__file__)
application = loadapp('config:production.ini', relative_to=current_dir)
生产.ini
mongodb.url = mongodb://root:PASSWORD@sarasa.dotcloud.com:18145
mongodb.db_name = my_data_base
错误:“无法连接到数据库”
在本地工作,在 production.ini 只更改 mongodb.url
【问题讨论】:
标签: python configuration mongodb pyramid dotcloud