Esempio n. 1
0
def send_notify_activation(request, user):
    emails = get_admin_emails()
    context = {
        'user': user,
        'request_user': request.user
    }
    send_mail(request, 'account/email/notify_activation', context, emails)
Esempio n. 2
0
def send_activation(request, user):
    emails = get_admin_emails()
    context = {
        'user': user,
        'login_url': request.build_absolute_uri(reverse('account_login'))
    }
    send_mail(request, 'account/email/activation', context, emails)
Esempio n. 3
0
def send_request_confirmation(request, user):
    emails = get_admin_emails()
    context = {
        'user': user,
        'users_url': request.build_absolute_uri(reverse('users'))
    }
    send_mail(request, 'account/email/request_confirmation', context, emails)