Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
Django - Update database value on drag and drop

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?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!