Mercurial > public > sg101
diff accounts/forms.py @ 991:4aadaf3bc234
Added SITE_SCHEME setting.
Configure site scheme to be either http or https based on SITE_SCHEME setting.
Updated code to use it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 01 Nov 2015 15:56:05 -0600 |
parents | be233ba7ca31 |
children |
line wrap: on
line diff
--- a/accounts/forms.py Sat Oct 31 17:36:31 2015 -0500 +++ b/accounts/forms.py Sun Nov 01 15:56:05 2015 -0600 @@ -205,7 +205,8 @@ site = Site.objects.get_current() admin_email = settings.DEFAULT_FROM_EMAIL - activation_link = 'http://%s%s' % ( + activation_link = '%s://%s%s' % ( + settings.SITE_SCHEME, site.domain, reverse('accounts-register_confirm', kwargs={'username': pending_user.username,