Python论坛  - 讨论区

标题:[python-chinese] [django]+[memacahed]错误

2007年03月15日 星期四 14:45

zhang peng finalmdj在gmail.com
星期四 三月 15 14:45:57 HKT 2007

配置文件
MIDDLEWARE_CLASSES = (
    'django.middleware.cache.CacheMiddleware',
    'django.middleware.common.CommonMiddleware',
)

出现的错误
Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

  File "D:\Python24\Lib\site-packages\mod_python\apache.py", line 299,
in HandlerDispatch
    result = object(req)

  File "d:\python24\lib\site-packages\Django-0.95.1-py2.4.egg\django\core\handlers\modpython.py",
line 163, in handler
    return ModPythonHandler()(req)

  File "d:\python24\lib\site-packages\Django-0.95.1-py2.4.egg\django\core\handlers\modpython.py",
line 131, in __call__
    self.load_middleware()

  File "D:\Python24\lib\site-packages\django-0.95.1-py2.4.egg\django\core\handlers\base.py",
line 38, in load_middleware
    mw_instance = mw_class()

  File "d:\python24\lib\site-packages\Django-0.95.1-py2.4.egg\django\middleware\cache.py",
line 33, in __init__
    self.cache_timeout = settings.CACHE_MIDDLEWARE_SECONDS

  File "D:\Python24\lib\site-packages\django-0.95.1-py2.4.egg\django\conf\__init__.py",
line 31, in __getattr__
    return getattr(self._target, name)

AttributeError: 'Settings' object has no attribute 'CACHE_MIDDLEWARE_SECONDS'

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号