我得到以下錯誤,我幾乎不知道從哪裏開始。我已閱讀,這可能是線程或別的東西,但在我的代碼存在的DocumentIndex
只出現一次具有document
作爲一種模式,沒有繼承它,並聲明是:如何在Django-Haystack中調試「Model <...>有多個SearchIndex處理它」錯誤?
class DocumentIndex(indexes.SearchIndex, indexes.Indexable):
的錯誤是:
ImproperlyConfigured: Model '<class 'documents.models.Document'>' has more than one 'SearchIndex`` handling it. Please exclude either '<documents.search_indexes.DocumentIndex object at 0x8363a78>' or '<documents.search_indexes.DocumentIndex object at 0x83b1870>' using the 'EXCLUDED_INDEXES' setting defined in 'settings.HAYSTACK_CONNECTIONS'.
full'class DocumentIndex' plz – 2014-11-05 13:18:13