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

cannot import name replace_method #16

Closed joke2k closed 10 years ago

joke2k commented 10 years ago

Error importing debug panel template_timings_panel.panels.TemplateTimings: "cannot import name replace_method"

Django==1.5.4 django-debug-toolbar==0.9.4 django-debug-toolbar-template-timings==0.5.3

from debug_toolbar.utils.tracking import replace_method

django toolbar does not have a utils.tracking module...

orf commented 10 years ago

Please update your django-debug-toolbar :)

bentappin commented 10 years ago

Looks like that import is going to break when v1.0 lands too, unfortunately.

https://github.com/django-debug-toolbar/django-debug-toolbar/blob/1.0-beta/debug_toolbar/utils.py

orf commented 10 years ago

Template-timings should now work fine with v1.0 :)