From ac89d39252193acc52dcfee1cc3717d240bd4cc0 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 5 Dec 2012 18:42:26 +0100 Subject: [PATCH] add print --- teleforma/context_processors.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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': -- 2.39.5