aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/middleware.py
AgeCommit message (Collapse)Author
2013-11-01Add a checkbox to toggle panels from the frontend.Aymeric Augustin
Fix #35.
2013-10-27Centralize access to config and default values.Aymeric Augustin
2013-10-26Eliminate almost all flake8 messages.Aymeric Augustin
2013-10-18Stop looking at settings.TEST. Fix #270.Aymeric Augustin
2013-10-18Make show_toolbar available for easier customization.Aymeric Augustin
Thanks Ned Batchelder for the suggestion. Fix #324.
2013-10-17Use render() to render with a RequestContext.Aymeric Augustin
Fix #16.
2013-10-17Support DEFAULT_CHARSET != 'utf-8'. Fix #15.Aymeric Augustin
2013-10-17Remove support for the X-Forwarded-For header.Aymeric Augustin
Follow the tracks of Django where it was removed in version 1.1. The reasons and a workaround are described here: https://docs.djangoproject.com/en/dev/releases/1.1/#removed-setremoteaddrfromforwardedfor-middleware Fix #338.
2013-10-17Update usage of the threading module.Aymeric Augustin
2013-10-17Replace basestring by six.string_types.Aymeric Augustin
2013-10-17Switch from str & unicode to bytes & text.Aymeric Augustin
2013-10-17Enable unicode_literals in all non-empty modules.Aymeric Augustin
2013-10-15Disable insertion in streaming responses.Aymeric Augustin
2013-05-27Merge pull request #333 from calvinchengx/masterJannis Leidel
Use threading instead of thread. Resolve _DummyThread bug.
2013-03-06Merge pull request #289 from fusionbox/masterRob Hudson
Do not intercept redirects for ajax requests
2012-11-03Uncommented out the dummy thread fix by mistake. Adding back in.Calvin Cheng
2012-11-03Fix unit test breakage. middleware functions are expecting ↵Calvin Cheng
threading.currentThread().ident, which is an integer, and not the threading.currentThread() instance itself.
2012-11-03Use python threading module instead of the python3 deprecated thread module. ↵Calvin Cheng
Fix this threading related bug - Exception AttributeError: AttributeError("_DummyThread object has no attribute _Thread__block",) in <module threading from
2012-08-24saving characters, and let django sort out the ajaxnessRickey Visinski
2012-08-24prevent debug toolbar from inserting itself into a partial template called ↵Rickey Visinski
via ajax. Prevents overwriting the current toolbar on the page and rendering the event listeners on toolbar panel buttons useless
2012-06-17Temporary solution for problems with dual View call for ProfilingDebugPanelMikhail Andreev (aka adw0rd)
2012-06-15Do not intercept redirects for ajax requestsGavin Wahl
2012-06-03Fixed typo when propagating handler403 value kmichel
It was propagated to handler404 instead of handler403.
2012-05-31Propagate handler403 value when wrapping urlconfkmichel
2012-04-04Removed backslash.Jannis Leidel
2012-03-14Don't explode if a project uses tuple'd urlpatternsDan Fairs
2012-01-12pep8David Cramer
2011-10-27fixed AttributeError on 404 page exception in ProfilerPanel.process_responseApkawa
2011-08-24Fixed error with i18n url patterns using Django 1.4Jeffrey Gelens
2011-08-09Force bool on settings.DEBUG as it could be set to a non bool value.Jason Keene
2011-08-09Fixed logic w/ settings.INTERNAL_IPS check.Jason Keene
2011-05-27Change __import__ usage to to be import_module, adjust test reqs to specify ↵David Cramer
>= 1.1,< 1.4, and add note about required Django version
2011-05-26Update TEST check to correct behavior (dont show toolbar under TEST)David Cramer
2011-05-26Correctly handle modules as request.urlconf -- Thanks to Germán M. Bravo ↵David Cramer
(fixes #166)
2011-05-26Merge pull request #165 from eventbrite/request-urlconfDavid Cramer
Accommodate per request URL confs
2011-05-26only load the toolbar if DEBUG, TEST, or INTERNAL_IPS matchDavid Cramer
2011-05-26toolbar should be disabled when settings.TEST is TrueGu Ye
2011-05-25We actually don't need to copy the debug toolbar urlconf.Nathan Yergler
2011-05-25Cache merged URL configurations by their original name.Nathan Yergler
This accomodates sites where middleware may change the urlconf for two different request.
2011-05-10Add support for __traceback_hide__ (tidy_stacktrace now inspects ↵David Cramer
inspect.stack() rather than traceback.extract_stack()) (fixes #160)
2011-05-10Catch non-200 requests (fixes #147)David Cramer
2011-05-09Dont error out if Content-Type is missing (fixes #153)David Cramer
2011-04-22Merge branch 'develop' of git://github.com/robhudson/django-debug-toolbar ↵David Cramer
into robhudson-develop Conflicts: debug_toolbar/media/debug_toolbar/css/toolbar.css debug_toolbar/media/debug_toolbar/css/toolbar.min.css debug_toolbar/media/debug_toolbar/js/toolbar.min.js debug_toolbar/middleware.py debug_toolbar/panels/sql.py debug_toolbar/templates/debug_toolbar/base.html debug_toolbar/templates/debug_toolbar/panels/sql.html
2011-04-20Updated middleware logic to avoid work if content-type isn't right.Rob Hudson
If content-type isn't an HTML type, we no longer process the panels or try to adjust the content length header.
2011-04-18Ensure if we're overriding the urlconf that we're resetting handler404/500David Cramer
2011-04-06Added protection against toolbar injections on gzipped responses.Rob Hudson
2011-03-30Ensure we're always returning a response(?)David Cramer
2011-03-28Instances of the toolbar are now stored at a class level. Added ↵David Cramer
DebugToolbarMiddleware.get_current()
2011-03-28Key on thread.get_ident()David Cramer
2011-03-23Overhaul SQL panel to include better timeline, more compact queries, and ↵David Cramer
better view of stacktrace