每当我关闭开发服务器(/管理.pyrunserver)使用CTRL+c我得到以下消息:[24/Feb/2009 22:05:23] "GET /home/ HTTP/1.1" 200 1571
[24/Feb/2009 22:05:24] "GET /contact HTTP/1.1" 301 0
[24/Feb/2009 22:05:24] "GET /contact/ HTTP/1.1" 200 2377
^C
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/logging/__init__.py", line 1354, in shutdown
h.flush()
TypeError: flush() takes exactly 2 arguments (1 given)
Error in sys.exitfunc:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/logging/__init__.py", line 1354, in shutdown
h.flush()
TypeError: flush() takes exactly 2 arguments (1 given)
我最近把这个项目移到了另一个目录,但是其他的一切都很好,所以我不知道这是否与它有关。。。在
如果我只是启动开发服务器,然后立即关闭它,我看不到错误。只有当我在浏览器中点击一些然后关闭服务器。。。在
有人能给我指出正确的方向吗?在
提前谢谢。在