Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我打算使用 Django-Haystack 将搜索组件添加到我的网站。这将处理我在 models.py 中的数据。然而,我也希望不在模型中但作为模板的一部分的数据是可搜索的。我怎么能得到这个。
有一个名为 haystack-static-pages 的 django 应用程序在这里应该有所帮助。它有一段时间没有更新,所以我怀疑它是否适用于 haystack 2.0,但我希望这可能对您有所帮助:
https://github.com/trapeze/haystack-static-pages