Mercurial > public > sg101
diff forums/views/subscriptions.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 | ee87ea74d46b |
children | e932f2ecd4a7 |
line wrap: on
line diff
--- a/forums/views/subscriptions.py Sat Oct 31 17:36:31 2015 -0500 +++ b/forums/views/subscriptions.py Sun Nov 01 15:56:05 2015 -0600 @@ -33,7 +33,7 @@ if recipients: site = Site.objects.get_current() subject = "[%s] Topic Reply: %s" % (site.name, topic.name) - url_prefix = "http://%s" % site.domain + url_prefix = "%s://%s" % (settings.SITE_SCHEME, site.domain) post_url = url_prefix + post.get_absolute_url() unsubscribe_url = url_prefix + reverse("forums-manage_subscriptions") msg = render_to_string("forums/topic_notify_email.txt", {