def fetch_profile(request):

    context = {}
    if request.user.is_authenticated():
        profile_module_name = get_my_profile_module_name()
        profile = getattr(request, profile_module_name, None)
        if profile != None:
            context[profile_module_name] = profile
    return context
attaches the user.profile object into the request object
dataset/ETHPy150Open pydanny/django-profiletools/profiletools/context_processors.py/fetch_profile