Re: int argument required error in HttpResponseRedirect
> The code which we have written is
> return HttpResponseRedirect ('/userans/%d/%d' %
> uno,qno)
>
> And the error given is int argument required error..
If you are passing more than one value into the string you have to
pass them as a tuple, like so:
return HttpResponseRedirect ('/userans/%d/%d' % (uno,qno))
Notice just the extra brackets around "uno, qno".
Regards,
Wayne
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home