def _get_dev_hostname(backend, instance=None):
 port = _get_dev_port(backend, instance)
 if (not port):
  error = ('Backend not found: %s' % backend)
  if (instance is not None):
   error = ('%s.%d' % (error, instance))
  raise InvalidBackendError(error)
 host = os.environ.get('SERVER_NAME', 'localhost')
 return ('%s:%d' % (host, port))

def _get_dev_hostname ( backend , instance = None ) : port = _get_dev_port ( backend , instance ) if ( not port ) : error = ( 'Backend not found: %s' % backend ) if ( instance is not None ) : error = ( '%s.%d' % ( error , instance ) ) raise InvalidBackendError ( error ) host = os . environ . get ( 'SERVER_NAME' , 'localhost' ) return ( '%s:%d' % ( host , port ) )
returns the hostname of a backend [instance] in the dev_appserver .