Answer the question
In order to leave comments, you need to log in
How to do ajax in Django?
Hello.
The task is as follows:
1) the user clicks on the comment like button on the page.
2) The number of likes increases by +1
3) This user is registered in the model of likes (so that he cannot add them anymore).
4) In the model of the author of the comment, +1 is added to the overall rating on the resource.
And all this must be done without reloading the page and without losing the user's focus.
I honestly have not worked with ajax yet (I ran it when I studied js) and technologies like angular, react, action script, etc. The question is: what to choose to implement my logic, + what is suitable for further expanding the functionality without reloading the page.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question