From fb7e40e8004eebd751d1ad5c3610d1474c78757f Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 6 Dec 2012 12:20:47 +0100 Subject: [PATCH] fix context localhost, audio url --- teleforma/context_processors.py | 5 ++++- teleforma/templates/teleforma/course_conference_audio.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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 %} -- 2.39.5