python - How do I debug the "Model <...> has more than one SearchIndex handling it" error in Django-Haystack? -
i next error , have literally no thought start. have read threading or else, in code there 1 occurrence of documentindex
has document
model, nil inherits , declaration is:
class documentindex(indexes.searchindex, indexes.indexable):
the error is:
improperlyconfigured: model '<class 'documents.models.document'>' has more 1 'searchindex`` handling it. please exclude either '<documents.search_indexes.documentindex object @ 0x8363a78>' or '<documents.search_indexes.documentindex object @ 0x83b1870>' using 'excluded_indexes' setting defined in 'settings.haystack_connections'.
this due racing status occurring in unifiedindex class of haystack.utils. supposed solved in django-haystack 2.4.
you can read here.
try using search_view_factory thread-safe unlike traditional searchview.
python django django-haystack
No comments:
Post a Comment