You do not have permission to modify this app.

899 views
Skip to first unread message

sat...@gmail.com

unread,
Jul 7, 2008, 6:06:15 AM7/7/08
to Google App Engine
I am getting this error however I tried all kinds to steps listed in
the group but nothing worked.

Here is app.yaml

application: helloworld
version: 1
runtime: python
api_version: 1

handlers:
- url: .*
script: helloworld.py

here is helloworld.py

import wsgiref.handlers

from google.appengine.api import users
from google.appengine.ext import webapp

class MainPage(webapp.RequestHandler):
def get(self):
user = users.get_current_user()

if user:
self.response.headers['Content-Type'] = 'text/palin'
self.response.out.write('Hello, ' + user.nickname())
else:
self.redirect(users.create_login_url(self.request.uri))

def main():
application = webapp.WSGIApplication(
[('/',MainPage)],
debug=True)
wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
main()

g-man

unread,
Jul 7, 2008, 8:53:41 PM7/7/08
to Google App Engine
Usually, this is a mismatch between the name it was registered under
and the name listed as 'application', if you are trying to upload it
to the live server.

If you are just trying to run it locally, I don't see how you would
get that message!
Reply all
Reply to author
Forward
0 new messages