Django==3.2.5
django-haystack==3.0
pysolr==3.9.0
Solr = 8.9.0
I am following the tutorial as in https://django-haystack.readthedocs.io/en/master/tutorial.html to create an Django application with Solr.
While executing ./manage.py rebuild_index, I am getting an error like:
**File "/..../tele_env/lib/python3.8/site-packages/haystack/indexes.py",
line 202, in build_queryset
index_qs = self.index_queryset(using=using)
TypeError: index_queryset() got an unexpected keyword argument 'using'**
I am stuck up since 3 days solving this error. Tried to downgrade each of the packages (Django, pysolr, haystack with solr 6.6, but didn't help me.
Please help me to get out of this circle of upgrading and downgrading... Thanks in advance
So I've just read the sources from
django-haystack3.0 and there are several weird things.First thing is that the
usingparameter is never used in the function definition (maybe its for subclasses, I didnt dig that far):Back to your error, in the
build_querysetmethod, the parameterusingis passed to the function index_queryset not the queryset itself, so I can't see why it would raise an error.Last thing is, I tested with both Django 2 and 3 projets, and using is always a method of queryset, not an argument, so I'm quite confused. Is your traceback from
Django 3.2andhaystack 3.0?