From a7f1e7c1477612ac7432e6727d0b0295975d94b0 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Thu, 23 Aug 2012 11:37:46 -0700 Subject: [PATCH] use the request's hostname rather than settings.SITE_NAME for activation emails --- common/djangoapps/mitxmako/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/mitxmako/middleware.py b/common/djangoapps/mitxmako/middleware.py index 50f2840a05..64cb2e5415 100644 --- a/common/djangoapps/mitxmako/middleware.py +++ b/common/djangoapps/mitxmako/middleware.py @@ -46,4 +46,4 @@ class MakoMiddleware(object): global requestcontext requestcontext = RequestContext(request) requestcontext['is_secure'] = request.is_secure() - requestcontext['site'] = settings.SITE_NAME + requestcontext['site'] = request.get_host()