def get_site_by_request(request):
    """
    Return the current site from the given request

    :param request: request to get the site from
    :return: site value in the request
    """
    return getattr(request, 'site', None)