break down get_url in two functions
Ensure we use a supported django version