id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 9443,get_url not returning correct URL on Windows platforms,dawidjoubert,nobody,"When calling the attribute .url on an ImageField() while running on Windows where the MEDIA_ROOT is = 'X:/sss' the url returned is incorrect. The reason is because in django.core.files.storage.FileSystemStorage.url(self, name) ( file django/core/files/storage.py line 213 ) the function urlparse.urljoin is called as such: return urlparse.urljoin(self.base_url, name).replace('\\', '/') For the test case self.base_url = 'http://static.klettings.dev/' and name = 'Z:\htdocs\uploads\54286.jpg' which returns a value of 'Z:/htdocs/uploads/CIMG1335.JPG' instead of 'http://static.klettings.dev/uploads/CIMG1335.JPG' The fix / patch for this is: ",,closed,Uncategorized,1.0,,invalid,,,Accepted,0,0,0,0,0,0