--- a/app/soc/views/models/program.py Mon Sep 07 20:07:58 2009 +0200
+++ b/app/soc/views/models/program.py Mon Sep 07 20:26:39 2009 +0200
@@ -25,6 +25,8 @@
]
+import os
+
from django import forms
from django import http
from django.utils.translation import ugettext
@@ -32,7 +34,6 @@
from soc.logic import allocations
from soc.logic import cleaning
from soc.logic import dicts
-from soc.logic import system
from soc.logic.helper import timeline as timeline_helper
from soc.logic.models import host as host_logic
from soc.logic.models import mentor as mentor_logic
@@ -415,7 +416,7 @@
contents = [content]
return_url = "http://%(host)s%(index)s" % {
- 'host' : system.getHostname(),
+ 'host' : os.environ['HTTP_HOST'],
'index': redirects.getSlotsRedirect(program, params)
}