def mock_request():
    current_site = Site.objects.get_current()
    request = HttpRequest()
    request.META['SERVER_NAME'] = current_site.domain
    return request
Generate a fake request object to allow oEmbeds to use context processors.
dataset/ETHPy150Open worldcompany/djangoembed/oembed/utils.py/mock_request