def get_current_site_configuration():
 from openedx.core.djangoapps.theming.helpers import get_current_site
 site = get_current_site()
 try:
  return getattr(site, 'configuration', None)
 except SiteConfiguration.DoesNotExist:
  return None

def get_current_site_configuration ( ) : from openedx . core . djangoapps . theming . helpers import get_current_site site = get_current_site ( ) try : return getattr ( site , 'configuration' , None ) except SiteConfiguration . DoesNotExist : return None
return configuration for the current site .