  
      def url(self, name):
          if self.base_url is None:
              raise ValueError("This file is not accessible via a URL.")
          return urlparse.urljoin(self.base_url, name).replace('\\', '/')
  
      def accessed_time(self, name):
          return datetime.fromtimestamp(os.path.getatime(self.path(name)))
  
      def created_time(self, name):
 
</s> remove from django.utils.encoding import force_unicode
 </s> add from django.utils.encoding import force_unicode, filepath_to_uri
        return urlparse.urljoin(self.base_url, filepath_to_uri(name))
  
      def url(self, name):
          if self.base_url is None:
              raise ValueError("This file is not accessible via a URL.")
        return urlparse.urljoin(self.base_url, filepath_to_uri(name))
  
      def accessed_time(self, name):
          return datetime.fromtimestamp(os.path.getatime(self.path(name)))
  
      def created_time(self, name):
keep keep keep keep replace keep keep keep keep keep
 Fixed #15181 -- Ensure that special characters are escaped when querying for the URL of an uploaded file. Thanks to e.generalov for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15409 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/core/files/storage.py