Python论坛  - 讨论区

标题:[python-chinese] 可怜的我, 在Dreamhost无法Django

2006年10月29日 星期日 15:28

Kevin anew kevinanew在gmail.com
星期日 十月 29 15:28:41 HKT 2006

django ºÍ flug ¶¼ÊÇ´ÓSVNÀï»ñµÃµÄ, °²×°Ò²ÊÇ°´ÕÕ
http://wiki.dreamhost.com/index.php/DjangoÀ´×öµÄ,ʲô¶¼¿ÉÒÔÁË,µ«¾ÍÊǵ½ÁËÔËÐÐ
django.fcgi ʱ¾ÍÓöµ½ÎÊÌâÁË

django.fcgi ·µ»ØµÄÒì³£:
--------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/anew/lib/flup_src/flup/server/fcgi_base.py", line 556, in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/home/anew/lib/flup_src/flup/server/fcgi_base.py", line 1094, in
handler
    result = self.application(environ, start_response)
  File "/home/anew/lib/django_src/django/core/handlers/wsgi.py", line 185,
in __call__
    response = self.get_response(request)
  File "/home/anew/lib/django_src/django/core/handlers/base.py", line 59, in
get_response
    response = middleware_method(request)
  File "/home/anew/lib/django_src/django/middleware/common.py", line 41, in
process_request
    if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in
old_url[1].split('/')[-1]):
IndexError: string index out of range
--------------------------------------------------------------------------------------

django.fcgi ÄÚÈÝ:
--------------------------------------------------------------------------------------
#!/home/anew/bin/python
import sys, os
sys.path += ['/home/anew/lib/django_src']
sys.path += ['/home/anew/lib/flup_src']
sys.path += ['/home/anew/django_projects']

# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "webres.settings"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(["method=threaded", "daemonize=false"])
--------------------------------------------------------------------------------------
PythonµÄ°æ±¾ÊÇ 2.4.4

GoogleÒ»ÏÂ,»¹ÓÐλÈÊÐÖÒ²¸úÎÒͬ²¡ÏàÁ¬,µ«ËûÒ²²»ÖªµÀÔõôÈçºÎ½â¾ö.
Somebody can help me ?
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061029/1aaa7d13/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号