mercredi 18 septembre 2019

Prevent form resubmission with user refresh and need to submit data to webpage using Django

I've seen this question a few times and can't find an option that works in my situation.

I have a webpage that you can get to via a POST. It requires an '' be sent to the server.

The webpage has a form for the user to fill out. When they submit the form, I need the user to return to same page.

I need to prevent user 'refresh' from resubmitting the form. Most common solution I have found is:

return HttpResponseRedirect('/<web_page/')

I have tried this and adding kargs to the function parameters, but it doesn't seem to work.




Aucun commentaire:

Enregistrer un commentaire