Thanks,
Yossi
On Feb 23, 5:15 am, niklasr 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 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 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
-~--~~~~--~~--~--~---