You can pass parameters . Here is an example:
Say you have a main page and you want POST to be "/ success". You can usually use this method:
self.redirect('/sucess')
But if you want to pass some parameters from the main page to the /success page, for example, username , you can change the code to this:
self.redirect('/sucess?username=' + username)
Thus, you have successfully passed the username value to the url. On the /success page, you can read and save the value using the following:
username = self.request.get('username')
Finally, you can do your favorite information on the /success page with this simple code:
self.response.out.write('You\'ve succeeded, ' + username + '!')
But , of course, this is not a secure way to pass a password. I want this to help.
source share