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

2012-08-18 Thread dt_da
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 postmas...@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-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



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

2012-08-18 Thread Robert Fischer
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 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 postmas...@dintechnology.com w**ith 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-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



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

2012-08-30 Thread dt_da
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

On Saturday, 25 August 2012 19:56:00 UTC+1, dt_da wrote:
>
> 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
>
> On Sunday, 19 August 2012 00:20:09 UTC+1, Robert Fischer wrote:
>>
>> 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 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 initi