[google-appengine] Re: What is the expected output for app_identity.get_default_version_hostname()

2019-01-23 Thread 'Mohammad I (Cloud Platform Support)' via Google App Engine
Hello, Please look into this document , which describes using the app_identity.get_default_version_hostname() method you can retrieve the entire hostname component if an app is served

[google-appengine] Re: What is the expected output for app_identity.get_default_version_hostname()

2019-01-16 Thread NP
Thanks for the response. With regards to question 2, if the project is being deployed by different users (hence different domains), you wouldn't know the custom domain URL upfront. A work around is to have user enter the value, which then gets stored and then you read it. I just wanted to know

[google-appengine] Re: What is the expected output for app_identity.get_default_version_hostname()

2019-01-16 Thread 'George (Cloud Platform Support)' via Google App Engine
In reply to your first question, you are right: google.appengine.api.app_identity.app_identity.get_default_version_hostname() gets the standard host name of the default version of the app. For example, if your application_id is my-app, then the result might be my-app.appspot.com. You may check