def get_protocol():
 protocol = 'http'
 if getattr(settings, 'USERENA_USE_HTTPS', userena_settings.DEFAULT_USERENA_USE_HTTPS):
  protocol = 'https'
 return protocol

def get_protocol ( ) : protocol = 'http' if getattr ( settings , 'USERENA_USE_HTTPS' , userena_settings . DEFAULT_USERENA_USE_HTTPS ) : protocol = 'https' return protocol
returns a string with the current protocol .