I did this using many if statements in view.py
you need to use <button type="button"> instead of <a> , and check if the POST request has that name to respond with different context, also you need to use if statements in template to update the frontend according to the response
IT IS A BAD PRACTICE, it is highly recommended to use JS framework to have a single page app
How to achieve going to another page without refreshing after for example clicking a link to another URL. More examples, I have a list of books display and when I clicked on one of the book, it will redirect me to the selected book page. This is the example of the code link.
<a class="link" href="{% url 'books:view_book_detail' obj.book.name obj.pk %}">View book</a>
I know about the history.pushState() but how to actually use it ? Can it be use with URL from Django. Are there any method else then stated ?
Go to another page without refresh [Django]