This is a question to make django move on to a specific link.

Asked 2 years ago, Updated 2 years ago, 40 views

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

2022-09-22 21:16

1 Answers

<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


2022-09-22 21:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.