def media(request, media_id, media_type='image'):
    media, media_format = _get_media_info(media_id, media_type)
    return render(request, 'gallery/media.html', {
        'media': media,
        'media_format': media_format,
        'media_type': media_type})
The media page.
dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/views.py/media