@login_required def get(self): user_id = users.get_current_user().user_id() token = channel.create_channel(user_id) table = GenerateTable('pixels', 8, 8) self.RenderResponse('main.html', token=token, table=table) In get — the actual handler serving the GET request from the browser — we use the login_required decorator to make sure the user is signed in, and then create a channel for message