diff options
| author | Aymeric Augustin | 2014-04-19 09:59:06 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2014-04-19 09:59:06 +0200 | 
| commit | 6ce52b2532afaccca9932b7087533609fd239a9b (patch) | |
| tree | a6cbeb3bef23dfcbb634c267aac0558817c095ef /debug_toolbar/toolbar.py | |
| parent | 4e7e465a49746f8717bf6340ef7cdcea5a31ab06 (diff) | |
| download | django-debug-toolbar-6ce52b2532afaccca9932b7087533609fd239a9b.tar.bz2 | |
Fix #549 -- Avoid breaking on mod_python.
(Please don't use mod_python.)
Diffstat (limited to 'debug_toolbar/toolbar.py')
| -rw-r--r-- | debug_toolbar/toolbar.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/debug_toolbar/toolbar.py b/debug_toolbar/toolbar.py index 03d4b7c..e63f1bc 100644 --- a/debug_toolbar/toolbar.py +++ b/debug_toolbar/toolbar.py @@ -89,7 +89,9 @@ class DebugToolbar(object):      def should_render_panels(self):          render_panels = self.config['RENDER_PANELS']          if render_panels is None: -            render_panels = self.request.META['wsgi.multiprocess'] +            # Django 1.4 still supports mod_python :( Fall back to the safe +            # and inefficient default in that case. Revert when we drop 1.4. +            render_panels = self.request.META.get('wsgi.multiprocess', True)          return render_panels      def store(self): | 
