Open stratosgear opened 6 years ago
I'm a little confused as to why this happens, since we're using noConflict(true)
.
I kind of wish something like this was accepted: https://github.com/mgood/flask-debugtoolbar/pull/59
Another thing that'd be a sensible choice is overriding the template. Since this is a debug tool, it's not always going to be added to a perfect codebase. So having things like that able to toggle from the get-go may be helpful.
I'd do a PR, but #59 was closed for some reason?
Edit:
By the way, update on the above, the reason my flask-debugtoolbar was breaking was due to https://github.com/MongoEngine/flask-mongoengine.
In flask_mongoengine/templates/panels/mongo-panel.html#L170, noConflict(true)
would knock $
off.
So in reality, I don't think my issue above applies as much. :P Maybe it'd be helpful to still allow an approach used in #59, but in my situation, it was a plugin for this, not the toolbar itself.
I have weird issue
I get:
when I load:
at the bottom of my base layout page ( I have to have my own jquery so I can load bootstrap etc)
That line is a simple:
On the html page source of my rendered page I see that debugtoolbar renders after my page and one of the first things it does it to load it's own version of jquery.
If I disable debugtoolbar, then everything is working correctly.
Only way to make it work (with debugtoolbar active) is if I run:
right after I load my jquery and from there on, I use
$j
instead of$
, which is a pain as I'm not used to it.Is it how everyone is using jquery alongside with debugtoolbar...?