I only use app-id.appspot.com.

As you say if I compare os.environ['HTTP_HOST'] with
os.environ['DEFAULT_VERSION_HOSTNAME'] I'll know if it's by default or not,
won't it?

Thanks for the approach.


Saludos.
Moisés Belchín.


2013/3/13 Takashi Matsuo <tmat...@google.com>

>
> Hi Moises,
>
> You can use os.environ['HTTP_HOST'] for comparison as long as the hostname
> doesn't contain the 'version' subdomain part. Are you using hostname with
> the 'version.app-id.appspot.com' style, or you're just using '
> app-id.appspot.com'?
>
>
>
> On Wed, Mar 13, 2013 at 3:13 AM, Moises Belchin 
> <moisesbelc...@gmail.com>wrote:
>
>> Hi guys,
>>
>> Is there any way to know if a version of my app is the DEFAULT version?
>>
>> I saw os.environ['DEFAULT_VERSION_HOSTNAME'] and
>> os.environ['CURRENT_VERSION_ID'] but I didn't find any way to compare two
>> of them and determine if this current version y the default version.
>>
>> Thanks for help.
>>
>> Regards.
>> Moisés Belchín.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-appengine?hl=en
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Takashi Matsuo | Developers Advocate | tmat...@google.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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


Reply via email to