django-debug-toolbar-template-timings icon indicating copy to clipboard operation
django-debug-toolbar-template-timings copied to clipboard

Import error when using with latest debug_toolbar

Open pcraston opened this issue 9 years ago • 10 comments

django.core.exceptions.ImproperlyConfigured: Error importing debug panel template_timings_panel.panels.TemplateTimings: "cannot import name Library"

pcraston avatar Oct 22 '15 12:10 pcraston

Works for me. I'm running:

Django==1.8.4
django-debug-toolbar==1.4
django-debug-toolbar-template-timings==0.6.4

bentappin avatar Oct 22 '15 12:10 bentappin

I think this concerns the Django 1.9 beta, I will investigate later :) Thanks for the report and the follow up :+1:

orf avatar Oct 22 '15 13:10 orf

I can confirm, this is happening for me on Django 1.9 RC1. Any update on a fix for this?

danpalmer avatar Nov 23 '15 18:11 danpalmer

I just ran in to this too with the now released Django 1.9

jamesbeith avatar Dec 17 '15 16:12 jamesbeith

I have the same issue :( django==1.9 django-debug-toolbar==1.4 django-debug-toolbar-template-timings==0.6.4

megahoy avatar Dec 28 '15 19:12 megahoy

Sorry for the lack of updates on this, I intended to get some work done after Christmas but then I got the flu quite badly.

I took a look at the code and to be honest I couldn't make heads or tails of it, so I'm going to rip it up and start again. Might be able to support Jinja2 and make it a bit less hacky along the way as well. On 28 Dec 2015 19:57, "Sergey Stribaylo" [email protected] wrote:

I have the same issue :( django==1.9 django-debug-toolbar==1.4 django-debug-toolbar-template-timings==0.6.4

— Reply to this email directly or view it on GitHub https://github.com/orf/django-debug-toolbar-template-timings/issues/24#issuecomment-167642226 .

orf avatar Dec 30 '15 13:12 orf

I have the same issue :( django==1.9.2 django-debug-toolbar==1.4 django-debug-toolbar-template-timings==0.6.4

shtalinberg avatar Feb 05 '16 11:02 shtalinberg

Me too.

Django==1.9.2
django-debug-toolbar==1.4
django-debug-toolbar-template-timings==0.6.4

sobolevn avatar Feb 11 '16 12:02 sobolevn

I just commented out the following lines:

template_base.generic_tag_compiler = _tag_compiler( template_base.generic_tag_compiler)

and appears to work fine on Django 1.9.5

slinkymanbyday avatar Apr 26 '16 14:04 slinkymanbyday

@slinkymanbyday Indeed, also works on 1.9.2.

It seems that generic_tag_compiler was a helper function that got inlined into the django.template.Library.simple_tag method around version 1.8 or something.

It seems like this panel works, but I wonder if not taking this into account is generating a bug of some kind, since now template-timings isn't wrapping the code I mentioned.

AgustinLado avatar Jul 14 '16 14:07 AgustinLado