2007年09月18日 星期二 19:33
ÎÒÔÚsuse10ϲ¿ÊðµÄ¡£ÕÕÀî´ó¸ç˵µÄ×ö£¬¶¼³ö´íÁË£¬ÓôÃÆ£¡Çó½â£¬ÏÈ˵ÉùллÁË£¡^_^ httpd.confÈçÏ£º Listen 10.130.58.172:8900¸ã²»Ã÷°×£¬ÉÏÃæ±êºì×ֵIJ¿·ÖÊÇÔõôÉèÖõġ£·´ÕýÊÇŪÁ˺ܾã¬ÔËÐл¹ÊdzöÏÖÏÂÃæµÄÒ³ÃæÌáʾ£º Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 178, in handler return ModPythonHandler()(req) File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 146, in __call__ self.load_middleware() File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 22, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 28, in __getattr__ self._import_settings() File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 57, in _import_settings self._target = Settings(settings_module) File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 85, in __init__ raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) EnvironmentError: Could not import settings 'newtest.settings' (Is it on sys.path? Does it have syntax errors?): No module named newtest.settings -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070918/722f1126/attachment-0001.html SetHandler python-program PythonPath "['/root/python/newtest']+sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE newtest.settings PythonAutoReload Off PythonDebug On Alias /site_media /root/python/newtest/media Alias /media /usr/local/lib/python2.4/site-packages/django/contrib/admin/mediaSetHandler None SetHandler None
2007年09月18日 星期二 19:43
PythonPath "['/root/python/newtest']+sys.path" 这里应该是newtest的父目录。 On 9/18/07, boyeestudio <boyee118在gmail.com> wrote: > 我在suse10下部署的。照李大哥说的做,都出错了,郁闷!求解,先说声谢谢了!^_^ > > httpd.conf如下: > Listen 10.130.58.172:8900 >> > > SetHandler python-program > PythonPath "['/root/python/newtest']+sys.path" > PythonHandler > django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE newtest.settings > PythonAutoReload Off > PythonDebug On > > > Alias /site_media /root/python/newtest/media > Alias /media > /usr/local/lib/python2.4/site-packages/django/contrib/admin/media > > SetHandler None > > > > SetHandler None > > > > 搞不明白,上面标红字的部分是怎么设置的。反正是弄了很久,运行还是出现下面的页面提示: > > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File > "/usr/lib/python2.4/site-packages/mod_python/apache.py", > line 299, in HandlerDispatch > > result = object(req) > > File > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > line 178, in handler > return ModPythonHandler()(req) > > File > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > line 146, in __call__ > > self.load_middleware() > > File > "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", > line 22, in load_middleware > for middleware_path in settings.MIDDLEWARE_CLASSES: > > File > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > line 28, in __getattr__ > > self._import_settings() > > File > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > line 57, in _import_settings > self._target = Settings(settings_module) > > File > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > line 85, in __init__ > > raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? > Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) > > EnvironmentError: Could not import settings 'newtest.settings > ' (Is it on sys.path? Does it have syntax errors?): No module named > newtest.settings > > > _______________________________________________ > 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 > -- I like python! UliPad < >: http://code.google.com/p/ulipad/ My Blog: http://www.donews.net/limodou
2007年09月18日 星期二 19:43
PythonPath "['/root/python/']+sys.path" ÊÔÊÔ ÄãµÄprojectÊǽÐnewtestÂð On 9/18/07, boyeestudio <boyee118在gmail.com> wrote: > > ÎÒÔÚsuse10ϲ¿ÊðµÄ¡£ÕÕÀî´ó¸ç˵µÄ×ö£¬¶¼³ö´íÁË£¬ÓôÃÆ£¡Çó½â£¬ÏÈ˵ÉùллÁË£¡^_^ > > httpd.confÈçÏ£º > Listen 10.130.58.172:8900 >> > > SetHandler python-program > PythonPath "['/root/python/newtest']+sys.path" > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE newtest.settings > PythonAutoReload Off > PythonDebug On > > > Alias /site_media /root/python/newtest/media > Alias /media /usr/local/lib/python2.4/site-packages/django/contrib/admin/media > > SetHandler None > > > SetHandler None > > > > ¸ã²»Ã÷°×£¬ÉÏÃæ±êºì×ֵIJ¿·ÖÊÇÔõôÉèÖõġ£·´ÕýÊÇŪÁ˺ܾã¬ÔËÐл¹ÊdzöÏÖÏÂÃæµÄÒ³ÃæÌáʾ£º > > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch > result = object(req) > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 178, in handler > return ModPythonHandler()(req) > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 146, in __call__ > self.load_middleware() > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 22, in load_middleware > for middleware_path in settings.MIDDLEWARE_CLASSES: > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 28, in __getattr__ > self._import_settings() > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 57, in _import_settings > self._target = Settings(settings_module) > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 85, in __init__ > raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) > > EnvironmentError: Could not import settings 'newtest.settings > ' (Is it on sys.path? Does it have syntax errors?): No module named newtest.settings > > > _______________________________________________ > 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 > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070918/c9514d4e/attachment.html
2007年09月18日 星期二 19:45
在07-9-18,boyeestudio <boyee118 at gmail.com> 写道: > > 我在suse10下部署的。照李大哥说的做,都出错了,郁闷!求解,先说声谢谢了!^_^ > > httpd.conf如下: > Listen 10.130.58.172:8900 >> > > SetHandler python-program > PythonPath "['/root/python/newtest']+sys.path" > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE newtest.settings > PythonAutoReload Off > PythonDebug On > > > Alias /site_media /root/python/newtest/media > Alias /media /usr/local/lib/python2.4/site-packages/django/contrib/admin/media > > SetHandler None > > > SetHandler None > > > > 搞不明白,上面标红字的部分是怎么设置的。反正是弄了很久,运行还是出现下面的页面提示: > > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch > result = object(req) > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 178, in handler > return ModPythonHandler()(req) > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 146, in __call__ > self.load_middleware() > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 22, in load_middleware > for middleware_path in settings.MIDDLEWARE_CLASSES: > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 28, in __getattr__ > self._import_settings() > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 57, in _import_settings > self._target = Settings(settings_module) > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 85, in __init__ > raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) > > EnvironmentError: Could not import settings 'newtest.settings > ' (Is it on sys.path? Does it have syntax errors?): No module named newtest.settings > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > 我在WINDOWS下也出现过这个问题是因为我的sys.path里面没有python的路径(仅供参考) 希望有高人给你支招. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070918/7c76559d/attachment-0001.htm
2007年09月18日 星期二 19:56
恩..好象在那里看到过...是APACHE的说明里面? 在07-9-18,limodou <limodou at gmail.com> 写道: > > PythonPath "['/root/python/newtest']+sys.path" > > 这里应该是newtest的父目录。 > > On 9/18/07, boyeestudio <boyee118 at gmail.com> wrote: > > 我在suse10下部署的。照李大哥说的做,都出错了,郁闷!求解,先说声谢谢了!^_^ > > > > httpd.conf如下: > > Listen 10.130.58.172:8900 > >> > > > > > SetHandler python-program > > PythonPath "['/root/python/newtest']+sys.path" > > PythonHandler > > django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE newtest.settings > > PythonAutoReload Off > > PythonDebug On > > > > > > Alias /site_media /root/python/newtest/media > > Alias /media > > /usr/local/lib/python2.4/site-packages/django/contrib/admin/media > > > > SetHandler None > > > > > > > > SetHandler None > > > > > > > > 搞不明白,上面标红字的部分是怎么设置的。反正是弄了很久,运行还是出现下面的页面提示: > > > > > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > > > Traceback (most recent call last): > > > > File > > "/usr/lib/python2.4/site-packages/mod_python/apache.py", > > line 299, in HandlerDispatch > > > > result = object(req) > > > > File > > > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > > line 178, in handler > > return ModPythonHandler()(req) > > > > File > > > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > > line 146, in __call__ > > > > self.load_middleware() > > > > File > > "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", > > line 22, in load_middleware > > for middleware_path in settings.MIDDLEWARE_CLASSES: > > > > File > > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > > line 28, in __getattr__ > > > > self._import_settings() > > > > File > > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > > line 57, in _import_settings > > self._target = Settings(settings_module) > > > > File > > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > > line 85, in __init__ > > > > raise EnvironmentError, "Could not import settings '%s' (Is it on > sys.path? > > Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) > > > > EnvironmentError: Could not import settings 'newtest.settings > > ' (Is it on sys.path? Does it have syntax errors?): No module named > > newtest.settings > > > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to > > python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request at lists.python.cn > > Detail Info: > > http://python.cn/mailman/listinfo/python-chinese > > > > > -- > I like python! > UliPad < >: http://code.google.com/p/ulipad/ > My Blog: http://www.donews.net/limodou > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070918/4eadefef/attachment.htm
2007年09月18日 星期二 19:56
在07-9-18,Tian <askfor at gmail.com> 写道: > > PythonPath "['/root/python/']+sys.path" > 试试 > 你的project是叫newtest吗 > > > > On 9/18/07, boyeestudio <boyee118 at gmail.com> wrote: > > > > 我在suse10下部署的。照李大哥说的做,都出错了,郁闷!求解,先说声谢谢了!^_^ > > > > httpd.conf如下: > > Listen > > 10.130.58.172:8900 > >> > > > > > SetHandler python-program > > PythonPath "['/root/python/newtest']+sys.path" > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE newtest.settings > > PythonAutoReload Off > > PythonDebug On > > > > > > > > Alias /site_media /root/python/newtest/media > > Alias /media /usr/local/lib/python2.4/site-packages/django/contrib/admin/media > > > > SetHandler None > > > > > > SetHandler None > > > > > > > > 搞不明白,上面标红字的部分是怎么设置的。反正是弄了很久,运行还是出现下面的页面提示: > > > > > > > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > > > Traceback (most recent call last): > > > > File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch > > result = object(req) > > > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 178, in handler > > return ModPythonHandler()(req) > > > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 146, in __call__ > > self.load_middleware() > > > > File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 22, in load_middleware > > for middleware_path in settings.MIDDLEWARE_CLASSES: > > > > > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 28, in __getattr__ > > self._import_settings() > > > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 57, in _import_settings > > self._target = Settings(settings_module) > > > > File "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", line 85, in __init__ > > raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) > > > > EnvironmentError: Could not import settings 'newtest.settings > > ' (Is it on sys.path? Does it have syntax errors?): No module named newtest.settings > > > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070918/132b36d3/attachment-0001.html
2007年09月18日 星期二 20:25
ÊÇdjangoµÄÎĵµ On 9/18/07, python Bian <python.bian在gmail.com> wrote: > > ¶÷..ºÃÏóÔÚÄÇÀï¿´µ½¹ý...ÊÇAPACHEµÄ˵Ã÷ÀïÃæ? > > ÔÚ07-9-18£¬limodou <limodou在gmail.com> дµÀ£º > > > > PythonPath "['/root/python/newtest']+sys.path" > > > > ÕâÀïÓ¦¸ÃÊÇnewtestµÄ¸¸Ä¿Â¼¡£ > > > > On 9/18/07, boyeestudio < boyee118在gmail.com> wrote: > > > ÎÒÔÚsuse10ϲ¿ÊðµÄ¡£ÕÕÀî´ó¸ç˵µÄ×ö£¬¶¼³ö´íÁË£¬ÓôÃÆ£¡Çó½â£¬ÏÈ˵ÉùллÁË£¡^_^ > > > > > > httpd.confÈçÏ£º > > > Listen 10.130.58.172:8900 > > >> > > > > > > > > SetHandler python-program > > > PythonPath "['/root/python/newtest']+sys.path" > > > PythonHandler > > > django.core.handlers.modpython > > > SetEnv DJANGO_SETTINGS_MODULE newtest.settings > > > PythonAutoReload Off > > > PythonDebug On > > > > > > > > > Alias /site_media /root/python/newtest/media > > > Alias /media > > > /usr/local/lib/python2.4/site-packages/django/contrib/admin/media > > > > > > SetHandler None > > > > > > > > > > > > SetHandler None > > > > > > > > > > > > ¸ã²»Ã÷°×£¬ÉÏÃæ±êºì×ֵIJ¿·ÖÊÇÔõôÉèÖõġ£·´ÕýÊÇŪÁ˺ܾã¬ÔËÐл¹ÊdzöÏÖÏÂÃæµÄÒ³ÃæÌáʾ£º > > > > > > > > > Mod_python error: "PythonHandler django.core.handlers.modpython " > > > > > > Traceback (most recent call last): > > > > > > File > > > "/usr/lib/python2.4/site-packages/mod_python/apache.py", > > > line 299, in HandlerDispatch > > > > > > result = object(req) > > > > > > File > > > > > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > > > line 178, in handler > > > return ModPythonHandler()(req) > > > > > > File > > > > > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > > > line 146, in __call__ > > > > > > self.load_middleware() > > > > > > File > > > "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", > > > line 22, in load_middleware > > > for middleware_path in settings.MIDDLEWARE_CLASSES: > > > > > > File > > > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > > > line 28, in __getattr__ > > > > > > self._import_settings() > > > > > > File > > > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > > > line 57, in _import_settings > > > self._target = Settings(settings_module) > > > > > > File > > > "/usr/local/lib/python2.4/site-packages/django/conf/__init__.py", > > > line 85, in __init__ > > > > > > raise EnvironmentError, "Could not import settings '%s' (Is it on > > sys.path? > > > Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) > > > > > > EnvironmentError: Could not import settings 'newtest.settings > > > ' (Is it on sys.path? Does it have syntax errors?): No module named > > > newtest.settings > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > -- > > I like python! > > UliPad < >: http://code.google.com/p/ulipad/ > > My Blog: http://www.donews.net/limodou > > _______________________________________________ > > 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 > > > > _______________________________________________ > 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 > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070918/5c100876/attachment.htm
Zeuux © 2025
京ICP备05028076号