From f7b401eedcad2404d90c51aaa48309127b0b3426 Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 19 Jul 2012 22:05:37 +0200 Subject: [PATCH] fix host again --- teleforma/templatetags/teleforma_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5