this is my code :
def to_complete(request):
return MobileResponseRedirect('/battle/complete/')
def complete(request):
do_something()
return MobileResponse(html)
but this method can not prevent back,
i do a Important thing in complete (like Increase in money in a game)
and i dont want user to refresh the page or back to the parent page ,
what can i do ,
thanks
A simple idea would be to use a session variable, like this:
This approach will let the user enter just once in
to_completeandcomplete. If you wanted the user to enter once again, just unset the session variable.