]> git.parisson.com Git - teleforma.git/commitdiff
fix path
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:07:24 +0000 (22:07 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:07:24 +0000 (22:07 +0200)
teleforma/templatetags/teleforma_tags.py

index 1ff1163d793ad73e1e89557384a54d0f3280c965..44e35ef41d99fc96adaafbde23e099e63b00419c 100644 (file)
@@ -192,7 +192,7 @@ def get_video_id(media):
 def get_host(url, host):
     u = urlparse(url)
     if host == '127.0.0.1' or host == 'localhost':
-        nu = u.scheme + '://' + host + u.path
+        nu = u.scheme + '://' + host + ':' + u.port + u.path
         return nu
     else:
         return url