2007年03月15日 星期四 14:45
配置文件 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'
Zeuux © 2025
京ICP备05028076号