orf / django-debug-toolbar-template-timings

A django-debug-toolbar panel that displays template rendering times for your Django application
https://pypi.python.org/pypi/django-debug-toolbar-template-timings
MIT License
297 stars 28 forks source link

Setting PRINT_TIMINGS causes TypeError #9

Closed leon-matthews closed 11 years ago

leon-matthews commented 11 years ago

To reduce the rather verbose default timing output on the console I attempted to set _PRINTTIMINGS=False but that caused a TypeError to be raised. Setting it to True had the same effect.

Traceback: File "/home/leon/.virtualenvs/animal3.messiah.co.nz/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = middleware_method(request) File "/home/leon/.virtualenvs/animal3.messiah.co.nz/local/lib/python2.7/site-packages/debug_toolbar/toolbar/loader.py" in init
  2. self.load_panels() File "/home/leon/.virtualenvs/animal3.messiah.co.nz/local/lib/python2.7/site-packages/debug_toolbar/toolbar/loader.py" in load_panels
  3. mod = import(panel_module, {}, {}, ['']) File "/home/leon/.virtualenvs/animal3.messiah.co.nz/local/lib/python2.7/site-packages/template_timings_panel/panels/TemplateTimings.py" in
  4. TEMPLATE_TIMINGS_SETTINGS.update(getattr(settings, k, {}))

Exception Type: TypeError at / Exception Value: 'bool' object is not iterable

orf commented 11 years ago

Fixed, that was a silly mistake. thanks for reporting it