Re: [google-appengine] python27 helloworld application doesn't work when application id is changed

204 views
Skip to first unread message

Robert Fischer

unread,
Aug 18, 2012, 7:20:09 PM8/18/12
to google-a...@googlegroups.com
Changing the appid in the app.yaml should work fine to upload the app.

You can also use appcfg.py --application=... to override the "application:" line specified in the app.yaml. More info here:  https://developers.google.com/appengine/docs/python/tools/uploadinganapp 

-Robert

On Sat, Aug 18, 2012 at 12:48 PM, dt_da <dinal...@dintechnology.com> wrote:
Hello,

I downloaded the app sdk and went through the helloworld example for python27, everything worked fine until the very last bit of the tutorial which was about deploying the application. I created a new application id on google, which was different to the name helloworld. The tutorial asked me to change the application property in the app.yaml to the application id - which is what I did and it came up with a error both on the SDK version and deployed version.

How do I deploy an application with a application id different to the name is was initially created in the app.yaml file?? I can't find anything on tutorial about this?


Din Tech notice
Please inform us if this message has gone astray - before deleting it - by forwarding this email to postm...@dintechnology.com with RETURN as the subject-line.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/-oYKV0W3q5cJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

dt_da

unread,
Aug 25, 2012, 2:56:00 PM8/25/12
to google-a...@googlegroups.com
Hello Robert,

I managed to get the helloworld application working under a different id in the google app engine launcher application (on my machine). I think if you change the application id in app.yaml (even though the launcher application will pick up the changed name straight away) it will cause an error, you still have to stop the application and re-run it then the error message goes away.

But when I deploy it (successfully) and try to run it on-line I get an error but I don't know what it relates to - attached are all the program files and screenshot.


Dinal
app engine err.jpg
helloworld.zip

dt_da

unread,
Aug 30, 2012, 3:37:28 PM8/30/12
to google-a...@googlegroups.com
I checked the logs these are errors:
  1. 2012-08-30 12:33:52.119
    Traceback (most recent call last):
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1511, in __call__
        rv = self.handle_exception(request, response, e)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1505, in __call__
        rv = self.router.dispatch(request, response)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
        return route.handler_adapter(request, response)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1077, in __call__
        return handler.dispatch()
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 547, in dispatch
        return self.handle_exception(e, self.app.debug)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 545, in dispatch
        return method(*args, **kwargs)
      File "/base/data/home/apps/s~din-ga01/1.361292798329383921/helloworld.py", line 37, in get
        url = users.create_login_url(self.request.uri)
      File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/users.py", line 256, in create_login_url
        raise NotAllowedError
    NotAllowedError
  2. E2012-08-30 12:33:54.944
    Traceback (most recent call last):
      File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 195, in Handle
        result = handler(dict(self._environ), self._StartResponse)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1519, in __call__
        response = self._internal_error(e)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1511, in __call__
        rv = self.handle_exception(request, response, e)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1505, in __call__
        rv = self.router.dispatch(request, response)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
        return route.handler_adapter(request, response)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1077, in __call__
        return handler.dispatch()
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 547, in dispatch
        return self.handle_exception(e, self.app.debug)
      File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 545, in dispatch
        return method(*args, **kwargs)
      File "/base/data/home/apps/s~din-ga01/1.361292798329383921/helloworld.py", line 37, in get
        url = users.create_login_url(self.request.uri)
      File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/users.py", line 256, in create_login_url
        raise NotAllowedError
    NotAllowedError

This runs fine on my local machine - is there a problem with the production python libraries?

Dinal
Reply all
Reply to author
Forward
0 new messages