Get an absolute URL from a given one.

def get_url(self, url):
        """
        Get an absolute URL from a given one.
        """
        if url.startswith('/'):
            url = '%s%s' % (self.base_url, url)
        return url