Thanks,
Yossi
On Feb 23, 5:15 am, niklasr <[email protected]> wrote:
> Host name and server name are available from os.environ.
>
> if os.environ.get('HTTP_HOST'):
> url = os.environ['HTTP_HOST']
> else:
> url = os.environ['SERVER_NAME']
>
> Regards,
> Niklas
>
> On Feb 22, 3:26 pm, Yossi <[email protected]> wrote:
>
>
>
> > How do I get the host name of my application from a python module?
>
> > Thanks,
> > Yossi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---