R
R
rm root2020-05-20 18:39:36
Django
rm root, 2020-05-20 18:39:36

Django 3 which redirect to use? or in general is it a redirect??

There is a page with comments, the user leaves a comment, and the form sends to the specified url.py, in view.py it redirects back to the page with comments, and the list of comments is updated.
How to make it so that when submitting the form, the page is not completely updated, but only the list of comments that the loop goes through.

That is, the User sends a comment through the form. The form is added to the database, and only the block with comments is updated (not the entire page, but only this block)
How to implement it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-05-20
@rm_root

This can be done using Ajax
https://code.djangoproject.com/wiki/AJAX

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question