'Returns the real URL in DEBUG mode.'

def url(self, name, force=False):

    if (settings.DEBUG and (not force)):
        (hashed_name, fragment) = (name, u'')
    else:
        (clean_name, fragment) = urldefrag(name)
        if urlsplit(clean_name).path.endswith(u'/'):
            hashed_name = name
        else:
            cache_key = self.cache_key(name)
            hashed_name = self.cache.get(cache_key)
            if (hashed_name is None):
                hashed_name = self.hashed_name(clean_name).replace(u'\\', u'/')
                self.cache.set(cache_key, hashed_name)
    final_url = super(CachedFilesMixin, self).url(hashed_name)
    query_fragment = (u'?#' in name)
    if (fragment or query_fragment):
        urlparts = list(urlsplit(final_url))
        if (fragment and (not urlparts[4])):
            urlparts[4] = fragment
        if (query_fragment and (not urlparts[3])):
            urlparts[2] += u'?'
        final_url = urlunsplit(urlparts)
    return unquote(final_url)
