I'm trying to make a site with django 1.9. I made it searchable using Elastic Search and haystack I'm asking you a question because I don't know how to do this and that.
, for instance.
<a href="...>Hong Gil-dong</a>
I'd like to go to the Hong Gil-dong search results page of Elastic Search when I click on I don't know how to start. Where should I start?
I think we can do something about the href value, but I can't think of the next one ㅠ<
django python
<form method="REST API" name="someName">
<a href="#" onclick="document.someName.submit();">Hong Gil-dong</a>
</form>
Elastic search is also restapi, so can we wrap a tag with a form and call it? I think we can apply it a little more.
Or you can use J-Query to read the text value in the atag and configure the api that you want to search in the following way.
http://www.w3schools.com/jquery/jquery_ajax_get_post.asp
© 2024 OneMinuteCode. All rights reserved.