(user, request)
Sends the activation email for the given user
Sends the activation email for the given user
Sends the activation email for the given user
def send_activation_email(user, request):
    """Sends the activation email for the given user"""

    subj = render_to_string("registration/activation_email_subject.txt")
    # remove trailing newline added by render_to_string
    subj = subj.strip()

    msg = render_to_string(
        "registration/activation_email.txt",
        {"site": RequestSite(request), "activation_key": user.profile.activation_key},
    )
    user.email_user(subj, msg)
def send_activation_email ( user , request ) : subj = render_to_string ( "registration/activation_email_subject.txt" ) # remove trailing newline added by render_to_string subj = subj . strip ( ) msg = render_to_string ( "registration/activation_email.txt" , { "site" : RequestSite ( request ) , "activation_key" : user . profile . activation_key } , ) user . email_user ( subj , msg )