如何使活塞返回异常的完整追溯。默认情况下,它只返回最后一个错误文本。像
id() takes exactly one argument (0 given)
需要知道哪个文件和哪一行...
如何使活塞返回异常的完整追溯。默认情况下,它只返回最后一个错误文本。像
id() takes exactly one argument (0 given)
需要知道哪个文件和哪一行...
Piston 通过 加载 http 状态响应utils.rc
,不会引发错误。
从文档中:
Configuration variables
Piston is configurable in a couple of ways, which allows more granular
control of some areas without editing the code.
Setting Meaning
settings.PISTON_EMAIL_ERRORS If (when) Piston crashes, it will email the
administrators a backtrace (like the Django one
you see during DEBUG = True)
settings.PISTON_DISPLAY_ERRORS Upon crashing, will display a small backtrace
to the client, including the method signature
expected.
settings.PISTON_STREAM_OUTPUT When enabled, Piston will instruct Django to
stream the output to the client, but please read
streaming before enabling it.