aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/views.py
AgeCommit message (Collapse)Author
2013-11-24OopsAymeric Augustin
2013-11-24Rename storage to store to avoid conflicting with Django terminology.Aymeric Augustin
2013-11-24Rename all panels consistently.Aymeric Augustin
Enforce absolute imports to avoid clashing with built-in package names. Thanks Jannis for his feedback.
2013-11-16Clean up DebugToolbar class, especially panels handling.Aymeric Augustin
2013-11-15Switch to random storage ids to avoid exposing information.Aymeric Augustin
2013-11-15Move panel-specific views in panel modules.Aymeric Augustin
2013-11-12Move store/fetch logic inside the DebugToolbar class.Aymeric Augustin
2013-11-12Remove unnecessary nesting.Aymeric Augustin
2013-11-10Load the content of panels dynamically.Aymeric Augustin
This should drastically reduce the overhead of the browser toolbar when a page has a complex template structure or many SQL queries. This change is backwards-incompatible for third-party panels because it changes the signature of __init__. The JavaScript could probably be improved; I'm outside my comfort zone.
2013-10-27Fix all flake8 warnings and add flake8 to tox.Aymeric Augustin
2013-10-26Eliminate almost all flake8 messages.Aymeric Augustin
2013-10-18Fixed #383 -- Feed the proper SQL to cursor.execute (the one with placeholders).Florian Apolloner
2013-10-17Use render() to render with a RequestContext.Aymeric Augustin
Fix #16.
2013-10-17Enable unicode_literals in all non-empty modules.Aymeric Augustin
2013-10-17Avoid naked except clauses.Aymeric Augustin
2013-10-17Remove compatibility code for unsupported version of Django.Aymeric Augustin
2013-10-17Remove unused imports.Aymeric Augustin
2013-04-24Merge branch 'master' of ↵Vladislav Poluhin
https://github.com/django-debug-toolbar/django-debug-toolbar into sql-panel-refactor Conflicts: debug_toolbar/static/debug_toolbar/css/toolbar.min.css debug_toolbar/views.py
2013-04-24Got rid of the circular importsVladislav Poluhin
2013-04-23Form for SQL validationVladislav Poluhin
2013-02-25Merge pull request #323 from mattrobenolt/explain-analyzeDavid Cramer
Add EXPLAIN ANALYZE for Postgres
2012-12-30Use the built-in json module on python >= 2.6.Simon Charette
`django.utils.simplejson` is pending deprecation as of django 1.5 and will be removed in 1.7.
2012-12-28Comment backVladislav Poluhin
2012-12-27Use POST instead GET, cuz GET is limitedVladislav Poluhin
2012-11-21fix hashcompat deprecation warnings with django 1.5Craig de Stigter
2012-09-16Add EXPLAIN ANALYZE for PostgresMatt Robenolt
2012-08-20use links to static files rather than direct inclusion, Fixes #307Thomas Grainger
2012-01-12pep8David Cramer
2011-10-09Fix for error 'Settings' object has no attribute 'DATABASE_ENGINE'pzinovkin
2011-05-10Support multiple databases in profile, select, and explain calls (fixes #155)David Cramer
2010-09-07Fixed issue 81.Rob Hudson
Updated to work with old TEMPLATE_LOADERS settings from < 1.2.
2010-09-03Fix for "View template links get "Template Does Not Exist" for django >= ↵Tom V
1.2" bug. http://github.com/robhudson/django-debug-toolbar/issues/issue/95 Signed-off-by: Rob Hudson <rob@cogit8.org>
2010-02-02Updated template source call to support Django 1.2Rob Hudson
2010-01-14Views.py tweaked to use friendlier "EXPLAIN QUERY PLAN" with sqlite3Chris Adams
Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-09-07Fixed template source to work nicely with and without Pygments.Rob Hudson
2009-08-28Refactored SQL panel to use datetime objects and added a visual display of ↵Rob Hudson
both duration and sequence to the SQL template.
2009-08-28Fixed sql profiling so it doesn't return a 500 if the SQL `SET PROFILING=1` ↵Rob Hudson
results in an error. Also fixed view to render the correct template.
2009-04-02Moving media so they are "namespaced" like templates.Rob Hudson
2009-01-17Fixing AJAX calls to detailed SQL views.Reto Aebersold
Signed-off-by: Rob Hudson <rob@cogit8.org>
2008-10-07Updating SQL views to return HttpResponseBadRequest on tamper detection.Rob Hudson
2008-10-07Clicking on a template file now will fetch and show the source of the template.Rob Hudson
Thanks to Adam Gomaa for the patch.
2008-10-06Adding query profiling for MySQL. Thanks to Simon Willison for the suggestion.Rob Hudson
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.
2008-10-06Just like EXPLAIN, adding the output of straight SELECT statements so you canRob Hudson
view the raw SQL output.
2008-09-24Adding a SHA-1 hash to the parameters passed to get the EXPLAIN query to avoidRob Hudson
any sort of tampering of the SQL or parameters.
2008-09-20Import simplejson from django rather than an external dependency.Rob Hudson
2008-09-16Merge branch 'master' into explain and updating a few bits to work with the newRob Hudson
urls and views.
2008-09-15Added a mechanism for monkeypatching in debug views, and also addedJacob Kaplan-Moss
jquery as both a test case and a place to get started making some js improvements. I'm not totally thrilled with this approach -- it feels *very* hackish. The alternative might be to simply require installers to add a line to their ROOT_URLCONF, which wouldn't be *bad*, but I like the "load automatically" part of this thing.
2008-09-11Adding view to explain SQL passed in via query string. Hopefully this isRob Hudson
database backend agnostic. Next up is connecting this with the SQL panel via AJAX.