From: yomguy Date: Thu, 19 Jul 2012 20:08:11 +0000 (+0200) Subject: fix path X-Git-Tag: 0.7.1~5^2~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3c9bb6d5fa3c0a1524b553766eed237cea7c0848;p=teleforma.git fix path --- diff --git a/teleforma/templatetags/teleforma_tags.py b/teleforma/templatetags/teleforma_tags.py index 44e35ef4..165aac7a 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': - nu = u.scheme + '://' + host + ':' + u.port + u.path + nu = u.scheme + '://' + host + ':' + str(u.port) + u.path return nu else: return url