From: yomguy Date: Wed, 5 Dec 2012 17:42:26 +0000 (+0100) Subject: add print X-Git-Tag: 1.3-TC~59 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ac89d39252193acc52dcfee1cc3717d240bd4cc0;p=teleforma.git add print --- diff --git a/teleforma/context_processors.py b/teleforma/context_processors.py index 28e3b000..fc5a0595 100644 --- a/teleforma/context_processors.py +++ b/teleforma/context_processors.py @@ -23,7 +23,7 @@ def get_local_host(): local_ip = ip break except: - continue + continue if not local_ip: local_ip = '127.0.0.1' @@ -40,6 +40,9 @@ def get_http_host(request): def host(request): request_host = get_http_host(request) local_host = get_local_host() + + print request_host + print local_host if request_host.split('.')[0] == local_host.split('.')[0] or \ request_host == '127.0.0.1' or request_host == 'localhost':