Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Yes, it is possible. You can do this by giving the button a route, so after clicking it, the function associated with this route will open.
For example, on the main page there is a like button:
After clicking, the route will open:
<a href="{% url 'score' track.pk %}">Like</a>
path('scoring/<str:pk>', like_or_dislike, name='score'),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question