【发布时间】:2010-06-30 15:44:39
【问题描述】:
我已经关注these instructions 为 Django 设置了多个数据库。它在我的本地开发环境(win7)中按预期工作,但是,当我将项目上传到我的实时服务器(webfaction)时,我得到
配置不当: 导入数据库路由器 MyCustomRouter 时出错:“没有名为 path.to.my.router 的模块”
从 Django shell,我可以导入 MyCustomRouter:
>>> from path.to.my.router import MyCustomRouter
>>>
我正在本地和实时服务器上运行 django 1.2.1 和 python2.6...
非常感谢任何可能导致此行为或如何调试的提示!
干杯,
马丁
【问题讨论】:
标签: database django configuration webfaction