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})
Given the database connection, the table name, and the cursor row
dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/views.py/media--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/core/management/commands/inspectdb.py/Command.get_field_type