def site_prefix():
 scheme = (u'https' if (settings.HTTPS == 'on') else u'http')
 return u'{}://{}'.format(scheme, settings.SITE_NAME)

def site_prefix ( ) : scheme = ( u'https' if ( settings . HTTPS == 'on' ) else u'http' ) return u'{}://{}' . format ( scheme , settings . SITE_NAME )
get the prefix for the site url-- protocol and server name .