Stacktraces aren't displayed in 0.9.4 #272

Closed
swiharta opened this Issue Mar 30, 2012 · 2 comments

2 participants

@swiharta

I upgraded to DDT 0.9.4 because 0.8.5 has a couple lines (in views.py and sql.py, referencing settings.DATABASE_ENGINE) that make it incompatible with Django 1.4.

I notice that stacktraces have been made optional, but are enabled by default. I'm not getting them in my SQL panel, even after adding 'ENABLE_STACKTRACES' : True to my settings.py.

One of the main reasons I use DDT is to track the queries generated by my code, and without a stacktrace in the "Explain" view, DDT 0.9.4 is nearly useless to me. In the meantime, I will continue using 0.8.5 after making the minor fixes.

If you know the answer, you can also score some quick points on Stack Overflow; this guy has the same issue.

@valtron

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).

@swiharta

Thanks a lot, I'll try this, no time right now, but I'll close the issue.

@swiharta swiharta closed this Apr 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment