diff -r fee8732830f7 -r e8d86272e6ea app/soc/tasks/surveys.py --- 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