use default reply email on the homepage

This commit is contained in:
Cory Zue
2018-03-23 14:25:26 +02:00
parent 1ac7e91d94
commit 313d8fa0c4
3 changed files with 5 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ STATICFILES_DIRS = (
# the address your emails (save the dates/invites/etc.) will come from
DEFAULT_WEDDING_FROM_EMAIL = 'You and Your Partner <happilyeverafter@example.com>'
# the default reply-to of your emails
DEFAULT_WEDDING_REPLY_EMAIL = DEFAULT_WEDDING_FROM_EMAIL
DEFAULT_WEDDING_REPLY_EMAIL = 'happilyeverafter@example.com'
# when sending test emails it will use this address
DEFAULT_WEDDING_TEST_EMAIL = DEFAULT_WEDDING_FROM_EMAIL

View File

@@ -152,7 +152,7 @@
</div>
<div class="col-lg-8 col-lg-offset-2 text-center">
<i class="fa fa-envelope-o fa-3x wow bounceIn" data-wow-delay=".1s"></i>
<p><a href="mailto:hello@coryandro.com">hello@coryandro.com</a></p>
<p><a href="mailto:{{ support_email }}">{{ support_email }}</a></p>
</div>
</div>
</div>

View File

@@ -1,8 +1,10 @@
from django.conf import settings
from django.shortcuts import render
from guests.save_the_date import SAVE_THE_DATE_CONTEXT_MAP
def home(request):
return render(request, 'home.html', context={
'save_the_dates': SAVE_THE_DATE_CONTEXT_MAP
'save_the_dates': SAVE_THE_DATE_CONTEXT_MAP,
'support_email': settings.DEFAULT_WEDDING_REPLY_EMAIL,
})