diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-27 10:10:08 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-27 10:10:08 -0400 |
commit | b4cf5bbafdda1b8f8fb4f51e6c961ffbbfe992d1 (patch) | |
tree | eb8731a6c56a1c8766d5b6bc3e75ce90cc998db3 /devel | |
parent | db0519771d3a3a977439f905c281274630e0f607 (diff) |
Pull references to Arch Linux in code into BRANDING_ variables in settings
This does not include templates
Diffstat (limited to 'devel')
-rw-r--r-- | devel/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/views.py b/devel/views.py index d2ce65db..7be3dc17 100644 --- a/devel/views.py +++ b/devel/views.py @@ -6,6 +6,7 @@ from string import ascii_letters, digits import time from django import forms +from django.conf import settings from django.http import HttpResponseRedirect from django.contrib.auth.decorators import \ login_required, permission_required, user_passes_test @@ -319,9 +320,9 @@ class NewUserForm(forms.ModelForm): 'password': password, }) - send_mail("Your new archweb account", + send_mail("Your new "+settings.BRANDING_APPNAME+" account", template.render(ctx), - 'Arch Website Notification <nobody@archlinux.org>', + settings.BRANDING_EMAIL, [user.email], fail_silently=False) |