import os

def get_base_url():
    if os.environ[AUTH_DOMAIN] == 'gmail.com':
        app_id = os.environ[APPLICATION_ID]
return 'http://' + app_id + '.appspot.com'
How can I get the base URI in AppEngine?