V
V
Vladislava2022-01-03 20:33:14
JavaScript
Vladislava, 2022-01-03 20:33:14

How to do live search on vue.js + django?

Hi all! I need to implement live search in django blog by post title. I know how to do it purely in django. And I imagine how to do it purely on vue. But I have no idea how to filter in vue by the field of the django model. Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wherevlad, 2022-01-04
@wherevlad

Hello, if I understood everything correctly, here are a couple of solutions for you:
* You send an ajax request from the browser to the back, and there a request to the database (it’s better to store the post titles somewhere in RAM) and return the result you need
* And how an option, but more difficult to use some kind of full-text text search engine, for example, the same sphinx or similar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question