Haystack says “Model could not be found for SearchResult”

后端 未结 2 1023
青春惊慌失措
青春惊慌失措 2021-01-01 23:26

After updating my Django from 1.7 to 1.9, search engine, which is based on Haystack and Solr, stopped working. This is what I get:

./manage.py shell
Python 2         


        
2条回答
  •  一生所求
    2021-01-01 23:53

    I was able to fix the issue by including a missing commit to the 2.4.1 release. The commit that fixed this issue was https://github.com/django-haystack/django-haystack/commit/f1ed18313777005dd77ed724ecbfb27c0b03cad8

    so you can do

    pip install git+ssh://git@github.com/django-haystack/django-haystack.git@f1ed18313777005dd77ed724ecbfb27c0b03cad8
    

    to install until that specific commit.

提交回复
热议问题