开发者

Django search for static parts of the site

开发者 https://www.devze.com 2023-03-03 12:07 出处:网络
I am planning to use Django-Haystack to add a search component to my site. This will take care of the data I have in my models.py. I however also want data which is not in a model, but par开发者_运维知

I am planning to use Django-Haystack to add a search component to my site. This will take care of the data I have in my models.py. I however also want data which is not in a model, but par开发者_运维知识库t of templates to be searchable. How can I get this.


There is a django app called haystack-static-pages that should help here. It's not been updated for a while so I doubt it will work with haystack 2.0, but I hope this might be of some help to you:

https://github.com/trapeze/haystack-static-pages

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号