break down get_url in two functions
Ensure we use a supported django version
Make sure we always return a mime type