Getting rid of Django IOErrors

后端 未结 3 1891
星月不相逢
星月不相逢 2021-01-02 19:54

I\'m running a Django site (via Apache/mod_python) and I use Django\'s facilities to inform me and other developers about internal server errors. Sometimes errors like those

3条回答
  •  天命终不由人
    2021-01-02 20:24

    You should be able to write a Middleware to catch the exception and you can then "silence" those specific exceptions.

    https://docs.djangoproject.com/en/2.2/topics/http/middleware/

提交回复
热议问题