2
If engage is a view, it needs to return a response. Preferably an HTTP response that the userβs browser can render.
You can try something like this:
def engage(request):
n = int(request.GET.get('n', 0))
return HttpResponse('<html><body>You sent over %s</body></html>' % n)
Also your URL should look like:
domain.com/engage/?n=10
Source:stackexchange.com