(request)
return redirect(reverse("user_profile", kwargs=dict(uid=user.profile.uid)))
Send one-time valid link to validate email
Send one-time valid link to validate email
Send one - time valid link to validate email
def send_email_verify(request):
    "Send one-time valid link to validate email"

    # Sends verification email with a token
    user = request.user

    send_verification_email(user=user)

    messages.success(request, "Verification sent, check your email.")

    return redirect(reverse("user_profile", kwargs=dict(uid=user.profile.uid)))
def send_email_verify ( request ) : # Sends verification email with a token user = request . user send_verification_email ( user = user ) messages . success ( request , "Verification sent, check your email." ) return redirect ( reverse ( "user_profile" , kwargs = dict ( uid = user . profile . uid ) ) )