def clean_http_referer(request, default_referer='/'):
    if not request:
        return default_referer
        
    referer = request.META.get('HTTP_REFERER', default_referer)
    
    return referer.replace("http://", "").replace("https://", "").replace(request.META['HTTP_HOST'], "")
test join where child does not exit within timeout
dataset/ETHPy150Open django-erp/django-erp/djangoerp/core/utils/__init__.py/clean_http_referer--crossover with--dataset/ETHPy150Open concurrence/concurrence/test/testcore.py/TestTasklet.testJoinTimeout