Google App Engine で webapp2 を使用してアプリケーションを構築しています。ユーザー名を URL に渡して、プロファイル ボタンをクリックすると、ユーザーが「/profile/username」に移動するようにするにはどうすればよいですか。「username」はユーザー固有のものですか?
私の現在のハンドラ:
app = webapp2.WSGIApplication([('/', MainPage),
('/signup', Register),
('/login', Login),
('/logout', Logout),
('/profile', Profile)
],
debug=True)
プロファイル クラス:
class Profile(BlogHandler):
def get(self):
email = self.request.get('email')
product = self.request.get('product')
product_list = db.GqlQuery("SELECT * FROM Post ORDER BY created DESC LIMIT 10")
self.render('profile.html', email = email, product = product, product_list = product_list)
データベースに固有の情報を含むプロファイル ページに各ユーザーを送信しようとしています。ありがとう