I am trying to create a sign up page using djangoafter the user press the sign up button i want the page to redirect them to another page using this line of codereturn redirect('congrat')
and also a function for "congrat" has already been created by me
def congrat(request): return render(request,"login/congratulation.html")
also the url has been defined in the urls.py file path("login/congrat",views.congrat,name = "congrat"),
but for some reason this is the output from the website after the button is clicked
I have consulted chatgpt which told me to check my urls.py and check if the function was defined which i have done and i cant seem to find an error there.