Skip to content
Advertisement

Delete a task stored in SQL database through html form using Python

This is a web app written in Python to add and delete tasks.

This is the add_tasks function:

Then my delete function takes only the stored items from SQL database to SELECT, in order to erase them.

This delete function leads to an internal server error. What´s wrong about it?

Advertisement

Answer

Finally, the POST part of my DELETE function was wrong. I´ve managed to find this solution:

Thanks, RobinFrcd for your help!

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement