aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/middleware.py
AgeCommit message (Collapse)Author
2009-11-02detect versions for other installed applicationsAlex Gaynor
2009-11-02Mkae this threadsafeAlex Gaynor
2009-09-15Fix so that the debug toolbar can be enabled/disabled safely on a ↵Augie Fackler
per-request basis.
2009-03-26New configuration option to provide your own 'show_toolbar' method.Rob Hudson
This change allows a custom method to be used in place of the default 'show_toolbar' method on whether the toolbar should be displayed.
2009-03-26Minor cleanup of imports and long lines.Rob Hudson
2009-03-21fixed bug when the string </body> matches more than once in the htmlLoic Bistuer
Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-01-17Fixing AJAX calls to detailed SQL views.Reto Aebersold
Signed-off-by: Rob Hudson <rob@cogit8.org>
2008-12-17Fixes #19 -- Modified the middleware to only install the debug ROOT_URLCONF ↵Russell Keith-Magee
if the debug toolbar is actually displayed.
2008-10-02Merge branch 'urlfix'Rob Hudson
2008-10-02Moving debug toolbar to the bottom of the HTML document and adjusting CSS toRob Hudson
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.
2008-10-02A fix for URL patterns getting appended on each request growing indefinitely.Rob Hudson
This may break with other middleware patching urlpatterns, though.
2008-09-30Adding toolbar config to override INTERCEPT_REDIRECTS and, in the future, otherRob Hudson
configurable pieces of the toolbar.
2008-09-30Adding redirect interception to the middleware to be able to view debug infoRob Hudson
before being redirected to a new page. Thanks to [530] in IRC for the idea. Coming soon will be a way to optionally disable this.
2008-09-30Removing unneeded check for toolbar that is taken care of a few lines up.Rob Hudson
2008-09-28Updated to fail nicely when DEBUG=False.Rob Hudson
2008-09-21Refactoring middleware and panels so panels have more explicit middleware-likeRob Hudson
methods to be more clear when panel processing happens.
2008-09-20Patch from Alex Gaynor that fixes jQuery conflicts with Pinax and potentiallyRob Hudson
other projects.
2008-09-20Turn back on if request.is_ajax check but put the monkey patching of URLs in noRob Hudson
matter what so our actual views (for ajax) can be run.
2008-09-20partly done with ajax support and jsRob Hudson
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-09Adding more checkes to middleware.Rob Hudson
2008-09-08Rewrite of toolbar HTML, CSS, and JS. Written by David Cramer with someRob Hudson
tweaks. This also removes the jQuery dependency.
2008-09-07Fixing a bug reported that was causing encoding errors. Thanks Chris Kelly forRob Hudson
the patch
2008-09-07Fixed a bug where the toolbar may have not been instantiated on request butRob Hudson
tried to access it on response.
2008-09-07adding a check to not display toolbar on ajax requestsRob Hudson
2008-09-07updating to pass around the request objectRob Hudson
2008-09-07Adding INTERNAL_IPS check to display toolbar — this may be a bit much but ↵Rob Hudson
there will potentially be lots of things there you would not want to share to just anyone.
2008-08-27Initial commit of basic working Debug Toolbar (that needs a lot of CSS and ↵Rob Hudson
JS love)