【问题标题】:django manage.py runserver hangs after second request (intermittent)django manage.py runserver 在第二个请求后挂起(间歇性)
【发布时间】:2017-11-18 05:08:20
【问题描述】:

我的 Django 1.11 应用程序(使用 runserver)在多次请求后挂起。无论是被 Chrome、Postman 还是 curl 访问都没有关系。

当它挂起时,即使 Ctrl+C 也无法关闭它。必须杀死 python.exe 进程。

我尝试调试它,但是当 Django 卡住时,无法暂停 Python 以获取线程/堆栈。

【问题讨论】:

    标签: python django web antivirus


    【解决方案1】:

    由于 Avast 防病毒软件的 Behavior Shield,这实际上发生在我身上。

    如果你用谷歌搜索,你会发现 Avast 长期以来一直“讨厌” Python:https://www.google.co.id/search?q=avast+python

    解决方案:Avast > Settings > Components > Behavior Shield > Exclusions,然后在此处添加您的 python.exe 或 virtualenv 的 python.exe:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-23
      • 1970-01-01
      相关资源
      最近更新 更多