[Answer]-Whoosh usage/error with django-haystack

1๐Ÿ‘

โœ…

I see that you have a haystack module in your project (/home/user/user/apps/proj-web/proj_name/haystack/). Remove this folder, activate your virtualenv and run:

pip uninstall django-haystack && pip install django-haystack

to be sure everything is ok.

Then try to configure your haystack like this:

import os
HAYSTACK_CONNECTIONS = {
  'default': {
    'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
    'PATH': os.path.join(os.path.dirname(__file__), 'search_index'),
  },
}
๐Ÿ‘คReto Aebersold

Leave a comment