def user_media_url(what):
    default = '%s%s/' % (settings.MEDIA_URL, what)
    key = "{0}_URL".format(what.upper().replace('-', '_'))
    return getattr(settings, key, default)
Generate default media url, and make possible to override it from
dataset/ETHPy150Open mozilla/addons-server/services/utils.py/user_media_url