def get_urls_proxy(output_pipe=sys.stderr):
 try:
  from django.conf import settings
 except Exception as e:
  output_pipe.write((('\n\nWarning, exception fetching KA Lite settings module:\n\n' + str(e)) + '\n\n'))
  return
 if (hasattr(settings, 'USER_FACING_PORT') and settings.USER_FACING_PORT and hasattr(settings, 'HTTP_PORT') and (not (settings.USER_FACING_PORT == settings.HTTP_PORT))):
  output_pipe.write('\nKA Lite configured behind another server, primary addresses are:\n\n')
  for addr in get_ip_addresses():
   (yield 'http://{}:{}/'.format(addr, settings.USER_FACING_PORT))

def get_urls_proxy ( output_pipe = sys . stderr ) : try : from django . conf import settings except Exception as e : output_pipe . write ( ( ( '\n\nWarning, exception fetching KA Lite settings module:\n\n' + str ( e ) ) + '\n\n' ) ) return if ( hasattr ( settings , 'USER_FACING_PORT' ) and settings . USER_FACING_PORT and hasattr ( settings , 'HTTP_PORT' ) and ( not ( settings . USER_FACING_PORT == settings . HTTP_PORT ) ) ) : output_pipe . write ( '\nKA Lite configured behind another server, primary addresses are:\n\n' ) for addr in get_ip_addresses ( ) : ( yield 'http://{}:{}/' . format ( addr , settings . USER_FACING_PORT ) )
get addresses of the server if were using settings .