₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,394 members, 8,430,772 topics. Date: Sunday, 21 June 2026 at 06:09 AM

Toggle theme

Django Get Attributeerror: Str Object - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingDjango Get Attributeerror: Str Object (384 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 IterableTutorial: Object Oriented Programming Paradigm For Beginners in PythonNull Reference Exception Object Reference Not Set To An Instance Of An Object In234

Find The List Of Best Content Management Systems Of 2021Let's Discuss FaunadbMind Programming