]> git.parisson.com Git - teleforma.git/commitdiff
add print
authoryomguy <yomguy@parisson.com>
Wed, 5 Dec 2012 17:42:26 +0000 (18:42 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 5 Dec 2012 17:42:26 +0000 (18:42 +0100)
teleforma/context_processors.py

index 28e3b000707209bb28c53d0377bdef4a2c8ad9ab..fc5a0595303bc1ca73903004f7b383df4125fbd7 100644 (file)
@@ -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':