'Get the URL for downloading a specific media file.'

def get_production_media_url(self, type_, version_slug, full_path=True):

    try:
        path = reverse('project_download_media', kwargs={'project_slug': self.slug, 'type_': type_, 'version_slug': version_slug})
    except NoReverseMatch:
        return ''
    if full_path:
        path = ('//%s%s' % (settings.PRODUCTION_DOMAIN, path))
    return path
