Redirects#
As per the documentation, Turbo expects a 303 redirect after a form submission.
If your project has PUT
, PATCH
, DELETE
requests, then you might need to take a look at this Clarification on redirect status code (303)
In Django, you can do it like this:
from django.shortcuts import redirect
return redirect('https://example.com/', status=303)