[Fixed]-Django delete database record when HTML button is clicked

1👍

Django has a built in DeleteView, so probably best to use that. Also, for security reasons, you really should use a form so that you can POST to this view. (Which the linked DeleteView provides an example of.)

Leave a comment