I am creating TODO app, and I am trying to implemnt drag and drop using JavaScript. I managed to create drag and drop feature but I don't know how to change and save tasks "category" (for example backlog to done) on drop.
Do I need to use JavaScript or is there some Django library that can help me? If JS is necessary, what should I do?
Since your action happens on the client side (in your browser), it means you have to use JavaScript to trigger the database change action.
But JavaScript does not have access to your backend database directly, that's why when you drop your card/task in another category, you want to handle that event and recognize in which category you have landed. (all this with JS)
Then you call your server API, via AJAX and you pass the task id and the new category to your backend side, where you have to update the database with new information.
I hope this was clear.