def production_url(service_name):
 project_id = os.environ.get('GAE_LONG_APP_ID')
 project_url = '{}.appspot.com'.format(project_id)
 if (service_name == 'default'):
  return 'https://{}'.format(project_url)
 else:
  return 'https://{}-dot-{}'.format(service_name, project_url)

def production_url ( service_name ) : project_id = os . environ . get ( 'GAE_LONG_APP_ID' ) project_url = '{}.appspot.com' . format ( project_id ) if ( service_name == 'default' ) : return 'https://{}' . format ( project_url ) else : return 'https://{}-dot-{}' . format ( service_name , project_url )
generates url for a service when deployed to app engine .