From: yomguy Date: Thu, 6 Dec 2012 11:20:47 +0000 (+0100) Subject: fix context localhost, audio url X-Git-Tag: 1.3-TC~57 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=fb7e40e8004eebd751d1ad5c3610d1474c78757f;p=teleforma.git fix context localhost, audio url --- diff --git a/teleforma/context_processors.py b/teleforma/context_processors.py index 64aea0f4..fc5a0595 100644 --- a/teleforma/context_processors.py +++ b/teleforma/context_processors.py @@ -23,7 +23,10 @@ def get_local_host(): local_ip = ip break except: - local_ip = '127.0.0.1' + continue + + if not local_ip: + local_ip = '127.0.0.1' return local_ip diff --git a/teleforma/templates/teleforma/course_conference_audio.html b/teleforma/templates/teleforma/course_conference_audio.html index 98427e3c..a137aaf9 100644 --- a/teleforma/templates/teleforma/course_conference_audio.html +++ b/teleforma/templates/teleforma/course_conference_audio.html @@ -51,7 +51,7 @@
{% endif %}