

def get_current_site(request):
    '\n            Checks if contrib.sites is installed and returns either the current\n            ``Site`` object or a ``RequestSite`` object based on the request.\n            '
    if Site._meta.installed:
        current_site = Site.objects.get_current()
    else:
        current_site = RequestSite(current_site)
    return current_site

dataset/ETHPy150Open statesofpop/django-cal/django_cal/views.py get_current_site/VarMisuse@40/106 `request`->`current_site`