问题
How can I force ddt to show me stacktrace? I can only see parts of templates in which queries are executed. But there are no views which generates queries. I set
'ENABLE_STACKTRACES' : True
in settings but this does not help me. I have version 0.9.4.
回答1:
Allow myself to quote... myself:
You can patch your 0.9.4 install by changing debug_toolbar/panels/sql.py:197 to read
params = map(escape, os.path.split(frame[0]) + frame[1:])
(and
import os.path
somewhere above).It looks like this issue was fixed in 12fdf7e (
render_stacktrace
).
来源:https://stackoverflow.com/questions/9352158/how-to-show-stacktrace-in-django-debug-toolbar