0

my views.py contains

def greet(request, name="World"):
    return HttpResponse(f"Hello, {name}!")

and for this the urls.py for the app has

url(r"^<str:name>/$", views.greet, name="greet"),

Upon entering /hello/chance it is showing me an error that Page not found. I have just started with Django, so please help me.

You must log in to answer this question.

Browse other questions tagged .