Solutionunvalidated
Use an except block and return an HttpResponseRedirect object redirecting the user to the error page or another page
9aa3cfdf-3233-4d48-b480-308e309024c6
Use an except block and return an HttpResponseRedirect object redirecting the user to the error page or another page