Django shell_plus与服务器断开连接

时间:2019-12-30 23:40:58

标签: python django shell

使用django命令python manage.py shell_plus时,在闲置几分钟后发送新命令时,经常出现以下错误。

OperationalError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

我从未用常规的shell命令看到过这一点。此错误的原因是什么,我可以在不退出python shell的情况下重新启动连接吗?

0 个答案:

没有答案