₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,735 members, 8,513,447 topics. Date: Thursday, 05 November 2026 at 02:52 AM

Toggle theme

Django Get Attributeerror: Str Object - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Django Get Attributeerror: Str Object (403 Views)

1 Reply

Django Get Attributeerror: Str Object by syluck(op): 5:12pm On Mar 20, 2021
 File "/Users/aureliendebord/Python/myapp/app/utils.py", line 76, in password_mail
mail = Mail(from_email, subject, to_email, content)
File "/Users/aureliendebord/Python/myapp/myvenv/lib/python3.6/site-packages/sendgrid/helpers/mail/mail.py", line 31, in __init__
personalization.add_to(to_email)
File "/Users/aureliendebord/Python/myapp/myvenv/lib/python3.6/site-packages/sendgrid/helpers/mail/mail.py", line 523, in add_to
self._tos.append(email.get())
AttributeError: 'str' object has no attribute 'get'



my problem is at the bolded...

pls help
Re: Django Get Attributeerror: Str Object by Karleb(m): 5:20pm On Mar 20, 2021
From what I see, the error is coming from email.get(). What do you intend to get from email variable and why?
Re: Django Get Attributeerror: Str Object by syluck(op): 8:39pm On Mar 21, 2021
Karleb:
From what I see, the error is coming from email.get(). What do you intend to get from email variable and why?
Hey, bro thanks for your input.

I've rectified the issue.
1 Reply

Encountering This Error In Django: TypeError: 'module' Object Is Not Iterable • Tutorial: Object Oriented Programming Paradigm For Beginners in Python • Null Reference Exception Object Reference Not Set To An Instance Of An Object In • 2 • 3 • 4

2 Months After He Got Suspended From Twitter And Facebook, Donald Trump Plans To • I Need Help On How To Get Remita Payment Gateway Api For Integration On Website • Top Android Emulators To Run And Test Android Apps On Linux