I use django (1.8.16) with a ton of plugins ("apps"). Some are:
- django-ckeditor==4.5.1
- django-image-cropping==1.0.3
- django.contrib.admin
- django-jquery==3.1.0
I want to use django autocomplete-light (dal for short) (3.2.1, current version) in the admin interface. Now I have the following jquery struggle. dal uses jquery but does not load it itself. It leaves it up to the developer. dal comes with a script "select2.js" registering a function under $.select2.
Now the problem. When a plugin like ckeditor or image-cropping loads jquery the function $.select2 is not reachable any more.
I have created a bug report over at dal but one dev says it is my responsability to load jquery first.
So, how do I load jquery, load it before dal needs it and load it only once?