--- a/app/soc/tasks/surveys.py Mon Sep 07 20:07:58 2009 +0200
+++ b/app/soc/tasks/surveys.py Mon Sep 07 20:26:39 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': system.getHostname(),
+ 'host': os.environ['HTTP_HOST'],
}
# set the context for the mail template