0

在我的 settings.py 上设置 SESSION_EXPIRE_AT_BROWSER_CLOSE = True 后,我在下面收到此错误。我可以毫无错误地打开、登录和注销……但如果我在登录前关闭,我会收到此错误。有没有办法解决它?提前致谢!

----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 63792)
Traceback (most recent call last):
  File "c:\Python27\lib\SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "c:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "c:\Python27\lib\site-packages\django\core\servers\basehttp.py", line 150
, in __init__
    super(WSGIRequestHandler, self).__init__(*args, **kwargs)
  File "c:\Python27\lib\SocketServer.py", line 638, in __init__
    self.handle()
  File "c:\Python27\lib\wsgiref\simple_server.py", line 116, in handle
    self.raw_requestline = self.rfile.readline()
  File "c:\Python27\lib\socket.py", line 447, in readline
    data = self._sock.recv(self._rbufsize)
error: [Errno 10054] An existing connection was cancelled by the remote host
----------------------------------------
4

0 回答 0