From 614f4540d0d2b22fcf9df0568bfd6112f8bf40a3 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 23 Jul 2012 23:41:45 -0400 Subject: [PATCH] Place a domain_override to force Django to use edx.org instead of example.com. Django hardcodes the subject line for password reset emails. You're supposed to be able to override it with a properly named template, but that didn't make it into 1.3.1 (which is what we're deploying on now). We're not using the Sites framework at this time, so this was the "fix". --- common/djangoapps/student/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index d0da67f247..27b2a9bb76 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -402,7 +402,8 @@ def password_reset(request): if form.is_valid(): form.save( use_https = request.is_secure(), from_email = settings.DEFAULT_FROM_EMAIL, - request = request ) + request = request, + domain_override = "edx.org" ) return HttpResponse(json.dumps({'success':True, 'value': render_to_string('registration/password_reset_done.html', {})})) else: