On Apr 9, 1:10 pm, prashanth <[email protected]> wrote:
> I am trying to run the web app framework, the hello world program as
> specified in the example but nothing shows up.
>
> Here is the code for helloworld py
>
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
> class MainPage(webapp.RequestHandler):
> def get(self):
> self.response.headers['Content-Type'] = 'text/plain'
> self.response.out.write('Hello, webapp World!')
> application = webapp.WSGIApplication(
> [('/', MainPage)],debug=True)
> def main():
> run_wsgi_app(application)
> if __name__ == "__main__":
> main()
Looks like an indentation problem; application = ... should not be in
the MainPage class.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---