How to obtain a plain text Django error page

后端 未结 5 2164
独厮守ぢ
独厮守ぢ 2020-12-06 02:05

During development, I am running Django in Debug mode and I am posting data to my application using a text mode application. Ideally, I need to receive a plain text response

5条回答
  •  渐次进展
    2020-12-06 02:31

    There's a setting DEBUG_PROPAGATE_EXCEPTIONS which will force Django not to wrap the exceptions, so you can see them, e.g. in devserver logs.

提交回复
热议问题