# Importing the necessary classes from Google App Engine. from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainPage(webapp.RequestHandler): def get(self): user = users.get_current_user() if user: welcome = ("Welcome, %s! (Sing out)" % (user.nickname(), users.create_logout_url('/'))) else: welcome = ("Sign in or Register" % users.create_login_url('/')) self.response.out.write("