Django-autocomplete-light: Issue with Django 1.11 and DAL 3.2.7, Jquery is not loaded properly

Created on 4 Jun 2017  路  1Comment  路  Source: yourlabs/django-autocomplete-light

I cannot seem to have dal 3.2.7 work with django 1.11. There is an issue with Jquery, when the page tries to load Select2 in the admin it does not find the jquery library.

Screenshot of the error given by select 2:
screenshot from 2017-06-04 12-14-55

Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page.

Screenshot of script tags of the django admin page.
screenshot from 2017-06-04 12-14-36

Note that I did include dal and dal_select2 before django.contrib.admin in the installed apps.

Most helpful comment

Ok, I know what the problem is:

I tried upgrading to dal 3.2.8 and it did not work, I tried to downgrade to django 1.10 and it still did not work.

BUT when I tried with another browser (Firefox) it worked like a charm, same with chrome incognito window. I concluded chrome probably hadn't refreshed it's cache or something. I refreshed the page with ctrl + SHIFT + R and everything seems to be working fine now.

TL; DR;
It was not a problem with DAL but a problem with the google chrome cache.

>All comments

Ok, I know what the problem is:

I tried upgrading to dal 3.2.8 and it did not work, I tried to downgrade to django 1.10 and it still did not work.

BUT when I tried with another browser (Firefox) it worked like a charm, same with chrome incognito window. I concluded chrome probably hadn't refreshed it's cache or something. I refreshed the page with ctrl + SHIFT + R and everything seems to be working fine now.

TL; DR;
It was not a problem with DAL but a problem with the google chrome cache.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cfblaeb picture cfblaeb  路  8Comments

Guilouf picture Guilouf  路  3Comments

zsugiart picture zsugiart  路  4Comments

raratiru picture raratiru  路  4Comments

dotmobo picture dotmobo  路  7Comments