aamalig / django-profile

Automatically exported from code.google.com/p/django-profile
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Windows problem #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
os.path.join joins the path with "\" on windows.

temporary solution:
file: templatetags\avatars 
url.replace("\\","/")

Original issue reported on code.google.com by Liubomir...@gmail.com on 16 Dec 2008 at 5:50

GoogleCodeExporter commented 8 years ago
I suggest to replace with this line: url = "%s/%s.%s%s" % (base, name, 
self.size, 
extension)

I think it is wrong to use os.path.join for web URLs.

Original comment by JereMMal...@gmail.com on 12 Apr 2009 at 10:37

GoogleCodeExporter commented 8 years ago
You're totally right. This code must be changed to use the urlparse utilities
(urljoin, urlsplit).

I'm going to change it. Thanks for reporting.

Original comment by david.ru...@gmail.com on 13 Apr 2009 at 11:57

GoogleCodeExporter commented 8 years ago

Original comment by david.ru...@gmail.com on 13 Apr 2009 at 12:13