Django-autocomplete-light: 'module' object has no attribute 'Select2QuerySetView'

Created on 6 Aug 2016  Â·  4Comments  Â·  Source: yourlabs/django-autocomplete-light

I have the following problem when running my application:

autocomplete.Select2QuerySetView.as_view(model=Product), AttributeError: 'module' object has no attribute 'Select2QuerySetView'

I installed the library correctly by pip, and I have imported into settings.py.

Thanks for your help,

Most helpful comment

Ran into the same issue:

Adding "dal" and "dal_select2" to the INSTALLED_APPS fixed it:

Then, let Django find static file we need by adding to INSTALLED_APPS, before django.contrib.admin and grappelli if present:

'dal',
'dal_select2',

'grappelli',

'django.contrib.admin',

https://django-autocomplete-light.readthedocs.io/en/master/install.html#install-in-your-project

All 4 comments

Perhaps you can debug this with pdb.set_trace() at the top of
autocomplete.py ?
On Aug 6, 2016 9:20 PM, "bennyrock20" [email protected] wrote:

I have the following problem when running my application:

autocomplete.Select2QuerySetView.as_view(model=Product), AttributeError:
'module' object has no attribute 'Select2QuerySetView'

I installed the library correctly by pip, and I have imported into
settings.py.

Thanks for your help,

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/yourlabs/django-autocomplete-light/issues/726, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFxrCRQQclZBpkgZ4UcLOjabNh-ma86ks5qdN6JgaJpZM4JeWLR
.

Ran into the same issue:

Adding "dal" and "dal_select2" to the INSTALLED_APPS fixed it:

Then, let Django find static file we need by adding to INSTALLED_APPS, before django.contrib.admin and grappelli if present:

'dal',
'dal_select2',

'grappelli',

'django.contrib.admin',

https://django-autocomplete-light.readthedocs.io/en/master/install.html#install-in-your-project

Awesome, perhaps you would like to contribute a FAQ with the exact error message so that people find the solution when they paste it on google ?

Please reopen when active !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VagnerNico picture VagnerNico  Â·  4Comments

mihalt picture mihalt  Â·  9Comments

Guilouf picture Guilouf  Â·  3Comments

Senpos picture Senpos  Â·  5Comments

nameisnot picture nameisnot  Â·  7Comments