From: yomguy Date: Thu, 19 Jul 2012 20:05:37 +0000 (+0200) Subject: fix host again X-Git-Tag: 0.7.1~5^2~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f7b401eedcad2404d90c51aaa48309127b0b3426;p=teleforma.git fix host again --- diff --git a/teleforma/templatetags/teleforma_tags.py b/teleforma/templatetags/teleforma_tags.py index 51b3d5fa..f027136d 100644 --- a/teleforma/templatetags/teleforma_tags.py +++ b/teleforma/templatetags/teleforma_tags.py @@ -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': - u.netloc = host - return u.geturl() + nu = u.scheme + '://' + host + path + return nu else: return url