We have used Django resolve here as well to split the url.