Python论坛  - 讨论区

标题:[python-chinese] Python + Apache + Django 的配置问题

2007年12月17日 星期一 07:25

疯了的决 itanyx在gmail.com
星期一 十二月 17 07:25:21 HKT 2007

一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20071217/6cf1b281/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年12月17日 星期一 08:16

Romit m_list在126.com
星期一 十二月 17 08:16:36 HKT 2007

看看你的ado导入模块或者相关的导入是不是存在问题。
疯了的决 写道:
> 帮我看看怎么回事啊 我配置好的服务器 运行就这样
> 最后那个提示 No module named System 我也搞不懂 System 只知道有个sys的
> adodbapi
>
>
> MOD_PYTHON ERROR
>
> ProcessId: 351996
> Interpreter: 'localhost'
>
> ServerName: 'localhost'
> DocumentRoot: 'F:/Web'
>
> URI: '/'
> Location: '/'
> Directory: None
> Filename: 'F:/Web/'
> PathInfo: ''
>
> Phase: 'PythonHandler'
> Handler: 'django.core.handlers.modpython'
>
> Traceback (most recent call last):
>
> File "D:\Python25\Lib\site-packages\mod_python\importer.py", line
> 1537, in HandlerDispatch
> default=default_handler, arg=req, silent=hlist.silent)
>
> File "D:\Python25\Lib\site-packages\mod_python\importer.py", line
> 1229, in _process_target
> result = _execute_target(config, req, object, arg)
>
> File "D:\Python25\Lib\site-packages\mod_python\importer.py", line
> 1128, in _execute_target
> result = object(arg)
>
> File
> "D:\Python25\Lib\site-packages\django\core\handlers\modpython.py",
> line 177, in handler
> return ModPythonHandler()(req)
>
> File
> "D:\Python25\Lib\site-packages\django\core\handlers\modpython.py",
> line 145, in __call__
> self.load_middleware()
>
> File "D:\Python25\Lib\site-packages\django\core\handlers\base.py",
> line 29, in load_middleware
> mod = __import__(mw_module, {}, {}, [''])
>
> File
> "D:\Python25\Lib\site-packages\django\contrib\sessions\middleware.py",
> line 2, in <module>
> from django.contrib.sessions.models import Session
>
> File
> "D:\Python25\Lib\site-packages\django\contrib\sessions\models.py",
> line 3, in <module>
> from django.db import models
>
> File "D:\Python25\Lib\site-packages\django\db\__init__.py", line 11,
> in <module>
> backend = __import__('django.db.backends.%s.base' %
> settings.DATABASE_ENGINE, {}, {}, [''])
>
> File
> "D:\Python25\Lib\site-packages\django\db\backends\ado_mssql\base.py",
> line 12, in <module>
> raise ImproperlyConfigured, "Error loading adodbapi module: %s" % e
>
> ImproperlyConfigured: Error loading adodbapi module: No module named
> System
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese




[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号