Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django活塞使活塞返回异常的完全回溯_Django_Django Piston - Fatal编程技术网

Django活塞使活塞返回异常的完全回溯

Django活塞使活塞返回异常的完全回溯,django,django-piston,Django,Django Piston,如何使活塞返回异常的完全回溯。默认情况下,它只返回最后一个错误文本。像 id() takes exactly one argument (0 given) 需要知道哪个文件和哪一行…活塞通过utils.rc加载http状态响应,不会引发错误 从文件中: Configuration variables Piston is configurable in a couple of ways, which allows more granular control of some areas with

如何使活塞返回异常的完全回溯。默认情况下,它只返回最后一个错误文本。像

id() takes exactly one argument (0 given)

需要知道哪个文件和哪一行…

活塞通过
utils.rc
加载http状态响应,不会引发错误

从文件中:

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.
我建议设置一个日志记录程序,使用它非常方便,您可以配置自己的日志级别和处理程序