you need to enclose that in a class like the examples you've been
reading,
and enclose that line, specifically on a get method. let's say for
example you named the class as "MainPage" in the above example , then
it must be mapped in "/" like
-------
from google.appengine.ext.webapp import Request
from google.appengine.ext import webapp
class MainPage(webapp.RequestHandler):
def get(self):
test = cgi.escape(self.request.get('test')
#eeewww, i'm using print :P
print test
application = webapp.WSGIApplication([('/',MainPage)], debug = True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()