You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be honest, the django approach always bugged me. I always wanted to have a jquery in the admin anyway. And I think it's nonsense to include two different versions (one for your own plugins and the django.jQuery one for the django stuff). I think we should always include the latest jquery version without any noConflict calls.
If a user needs his own jQuery, then he can use the noConflict himself.
The only problem I see is that custom widgets might define jquery as dependency in their class Media: listing. If that one gets included, it will break the already included jquery from admin2. But that problem isn't solved by using noConflict for the admin itself. Because if you then have two different widgets with each importing jquery .... you see the big picture.
I want a JS dependency resolving in django anyway. Isn't their a good app for this anywhere?
Theoretically speaking I do agree, but ... when using 3rd–party admin–based apps, you probably cannot assume they use noConflict. Besides, if an admin–app uses django.jQuery it's pretty clear what they refer to.
see http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/
Not sure what's the best way to achieve this – django uses:
The text was updated successfully, but these errors were encountered: