| Age | Commit message (Collapse) | Author |
|
|
|
broken at the moment.
|
|
|
|
This change allows a custom method to be used in place of the default 'show_toolbar' method on whether the toolbar should be displayed.
|
|
|
|
I think I finally got this one working. The saving of the temporary variable has to happen *before* jQuery loads, or else jQuery has already stomped on the '$' variable that another library might have used. This patch moves the temporary saving of this variable the HTML template so it tucks it aside before jQuery loads and puts it back after we're done. Tested and works with jQuery, mootools, and prototype.
|
|
|
|
Merge branch 'sql_stacktrace'
* sql_stacktrace:
Tuple unpacking of stacktrace variables for niceness.
Add preliminary support for stacktraces to see where SQL queries are coming from.
|
|
* jQuery events changed slightly which caused the click event on '#djDebugPanelList li a' to fire when the hide link was clicked. The hide link has no class attribute and an error was occurring. This checks for the lack of a class attribute and returns false immediately if it doesn't exist. The other event should catch normally and hide the toolbar.
* Updating all click methods to return false.
* Close the opened panel when hide is clicked.
|
|
panels."
There were some issues with this commit that need to be resolved before it's added back in.
|
|
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
|
|
Any panels that would cause the toolbar to wrap to a new line are put into a
new final panel called "more..." and are accessible via a vertical list under
that panel.
Slight tweaks were made to the original to match a previous commit's Javascript
style.
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
Added formatting of "GROUP BY" and "HAVING", which now show up in trunk queries
and could have shown up previously if manually patched into the QuerySet.query
instance.
Also indent joined tables a bit more underneath the "FROM" statement: they are
sub-statements of "FROM".
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
We always start a new line for "FROM" now. Previous code was assuming MySQL
quoting of identifiers (MySQL is a bit non-standard in using backquotes) and
was assuming the last thing before the FROM would be a quoted identifier, which
wasn't always true, particularly when extra() is used on querysets.
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
If the debug toolbar was used in a page with, e.g., YUI grids, it would inherit
a "text-align:center" styling for all text. We now force the main structures to
be left-aligned.
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
|
|
|
|
from.
I'm wanting to test this a bit more before I merge it in fully. Feedback welcome.
|
|
|
|
Fixed by moving the template panel's context_processor introspection to the
content method so this happens at the process_response time instead of at
process_request time. Since context processors _were_ happening at the
process_response end, it was triggering the query
`user.get_and_delete_messages()` which was also getting triggered separately if
used in templates (i.e. the admin templates) resulting in duplicate queries
showing up in the toolbar.
|
|
|
|
|
|
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
|
|
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
Signed-off-by: Rob Hudson <rob@cogit8.org>
|
|
queries if a model __unicode__() function make some additional queries (i.e. for a related model).
Signed-off-by: Rob Hudson <rob@tastybrew.com>
|
|
if the debug toolbar is actually displayed.
|
|
|
|
only
the basic timings are shown for those that don't have the resource module, and
finer grained timings are shown for those that do.
|
|
|
|
(some items were commented out after I was reminded that not all of the original BSD items are supported under Linux)
|
|
|
|
self._offset (sometimes 0).
|
|
|
|
|
|
|
|
|
|
django.contrib.gis.
|
|
|
|
Thanks to Adam Gomaa for the patch.
|
|
There's a big TODO on this one, which is to not display or attempt to execute
the profiling SQL calls if this isn't MySQL and if MySQL isn't >= version
5.0.37. For now it's a nice playground of the profiler if you have MySQL
v5.0.37 or higher.
|
|
view the raw SQL output.
|
|
|
|
|
|
Compressor
|
|
|
|
position toolbar at top. Injecting toolbar at the bottom has a few advantages,
such as removing the regular expression substitution making it about 5x faster
(depending on document size), JS and CSS have a lesser chance of conflicting
with others on the page.
|
|
This may break with other middleware patching urlpatterns, though.
|