@cache_control(private=True, must_revalidate=True, max_age=60)
def logo_image(request, gif=False, response_format='html'):

    staticpath = getattr(settings, 'STATIC_DOC_ROOT', './static')
    logopath = staticpath + '/logo'
    if gif:
        logopath += '.gif'
        mimetype = 'image/gif'
    else:
        logopath += '.png'
        mimetype = 'image/png'

    customlogo = ''
    try:
        conf = ModuleSetting.get_for_module('treeio.core', 'logopath')[0]
        customlogo = getattr(
            settings, 'MEDIA_ROOT', './static/media') + conf.value
    except:
        pass

    logofile = ''
    if customlogo:
        try:
            logofile = open(customlogo, 'rb')
        except:
            pass

    if not logofile:
        try:
            logofile = open(logopath, 'rb')
        except:
            pass

    return HttpResponse(logofile.read(), content_type=mimetype)
Returns the crucible url of the review
dataset/ETHPy150Open treeio/treeio/treeio/core/views.py/logo_image--crossover with--dataset/ETHPy150Open rckclmbr/git-crucible/crucible/client.py/API.review_url