figures/sites.py
def default_site():
    """Returns the default site instance if Django settings defines SITE_ID, else None

    Tech debt note: Open edX monkeypatches django.contrib.sites to override
    behavior for getting the current site.
    """
    if getattr(settings, 'SITE_ID', ''):
        return Site.objects.get(pk=settings.SITE_ID)

    return None
Returns the default site instance if Django settings defines SITE_ID, else None

    Tech debt note: Open edX monkeypatches django.contrib.sites to override
    behavior for getting the current site.
    
Returns the default site instance if Django settings defines SITE_ID, else None
Tech debt note: Open edX monkeypatches django.contrib.sites to override
behavior for getting the current site.
Returns the default site instance if Django settings defines SITE_ID else None Tech debt note : Open edX monkeypatches django . contrib . sites to override behavior for getting the current site .
def default_site():
    if getattr(settings, 'SITE_ID', ''):
        return Site.objects.get(pk=settings.SITE_ID)
    return None
def default_site ( ) : if getattr ( settings , 'SITE_ID' , '' ) : return Site . objects . get ( pk = settings . SITE_ID ) return None
Returns the default site instance if Django settings defines SITE_ID, else None
Tech debt note: Open edX monkeypatches django.contrib.sites to override
behavior for getting the current site.
Returns the default site instance if Django settings defines SITE_ID else None Tech debt note : Open edX monkeypatches django . contrib . sites to override behavior for getting the current site .
"""Returns the default site instance if Django settings defines SITE_ID, else None

    Tech debt note: Open edX monkeypatches django.contrib.sites to override
    behavior for getting the current site.
    """