+
+ # Replace double forward slashes with single ones
+ final_url = '%s%s' % (settings.APP_URL, sitemap_url)
+ final_url = re.sub("/+", "/", final_url)
+ final_url = final_url.replace('http:/', 'http://')
+ final_url = final_url.replace('https:/', 'https://')
+
+ sites.append(final_url)