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