Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

why do i get this error "cannot unpack non-iterable bool object"

$
0
0

i get this error "cannot unpack non-iterable bool object" as i try to get user input from a form in django which in this case is an email

def send_email(request):  recepient_list=[]  if request.method == "POST":        email = request.POST['pwd_email']        print(email)        if User.objects.filter(email == email).exists:              recepient_list.append(email)              send_mail("PASSWORD RESET", f"Your password resetkey is {random_no} \n Do not share this key with anyone", "eliaakjtrnq@gmail.com",recepient_list,fail_silently=False,)              recepient_list.clear()

Viewing all articles
Browse latest Browse all 13951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>