app/soc/tasks/surveys.py
changeset 2867 e8d86272e6ea
parent 2615 08788ae10436
child 2871 e440e94a874b
--- a/app/soc/tasks/surveys.py	Mon Sep 07 20:02:35 2009 +0200
+++ b/app/soc/tasks/surveys.py	Mon Sep 07 20:06:27 2009 +0200
@@ -23,13 +23,13 @@
 
 
 import logging
-import os
 
 from google.appengine.api.labs import taskqueue
 
 from django import http
 
 from soc.tasks.helper import error_handler
+from soc.logic import system
 
 
 def getDjangoURLPatterns():
@@ -222,7 +222,7 @@
 
     survey_url = "http://%(host)s%(redirect)s" % {
       'redirect': survey_redirect,
-      'host': os.environ['HTTP_HOST'],
+      'host': system.getHostname(),
       }
 
     # set the context for the mail template