Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16862

NoReverseMatch at /login/login/signup

$
0
0

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.


Viewing all articles
Browse latest Browse all 16862

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>