def METHOD_NAME(url):
    try:
        # Try getting the file from disk directly first, …
        return get_mediastatic_content(url)
    except FileNotFoundError:
        # … then fall back to asking the views.
        response = client.METHOD_NAME(url, is_html_export=True, HTTP_ACCEPT="text/html")
        content = get_content(response)
        return content