Python论坛  - 讨论区

标题:[python-chinese] django问题

2006年01月15日 星期日 16:51

jejwe jejwester at gmail.com
Sun Jan 15 16:51:38 HKT 2006

Traceback (most recent call last):

  File "c:\program
files\python\lib\site-packages\django-0.91-py2.4.egg\django\core\servers\basehttp.py",
line 272, in run
    self.result = application(self.environ, self.start_response)

  File "c:\program
files\python\lib\site-packages\django-0.91-py2.4.egg\django\core\servers\basehttp.py",
line 615, in __call__
    return self.application(environ, start_response)

  File "c:\program
files\python\lib\site-packages\django-0.91-py2.4.egg\django\core\handlers\wsgi.py",
line 155, in __call__
    response = self.get_response(request.path, request)

  File "c:\program
files\python\lib\site-packages\django-0.91-py2.4.egg\django\core\handlers\base.py",
line 59, in get_response
    response = middleware_method(request)

  File "c:\program
files\python\lib\site-packages\django-0.91-py2.4.egg\django\middleware\sessions.py",
line 63, in process_request
    request.session =
SessionWrapper(request.COOKIES.get(SESSION_COOKIE_NAME, None))

  File "c:\program
files\python\lib\site-packages\django-0.91-py2.4.egg\django\core\handlers\wsgi.py",
line 101, in _get_cookies
    self._cookies =
httpwrappers.parse_cookie(self.environ.get('HTTP_COOKIE', ''))

  File "c:\program
files\python\lib\site-packages\django-0.91-py2.4.egg\django\utils\httpwrappers.py",
line 133, in parse_cookie
    c.load(cookie)

  File "C:\Program Files\python\lib\Cookie.py", line 621, in load
    self.__ParseString(rawdata)

  File "C:\Program Files\python\lib\Cookie.py", line 652, in __ParseString
    self.__set(K, rval, cval)

  File "C:\Program Files\python\lib\Cookie.py", line 574, in __set
    M.set(key, real_value, coded_value)

  File "C:\Program Files\python\lib\Cookie.py", line 453, in set
    raise CookieError("Illegal key value: %s" % key)

CookieError: Illegal key value: /
一直都好的,按LIMODOU的前几个例子做也是好的,但今天打开前几天弄的例子,竟然出错,打开页面都是这样的这是怎么回事
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060115/0ee53691/attachment-0001.html

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

2006年01月16日 星期一 21:12

唐晓平 xiaoping.tang at gmail.com
Mon Jan 16 21:12:10 HKT 2006

清空下Cookie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060116/b5a9b996/attachment.html

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号