T
T
Tezushi2020-07-10 00:11:14
Django
Tezushi, 2020-07-10 00:11:14

How to call a function on button click in Django template?

I have a website with tutorials on it. I want to expand the functionality with the "Lesson passed" button, by clicking on the button, a record should be entered in the database that a particular user has passed the lesson. How to implement it correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
latush, 2020-07-10
@Tezushi

or ajax. and a handler on the jaga side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question