Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,759,385 members, 6,560,066 topics. Date: Thursday, 28 October 2021 at 10:08 AM

Django Get Attributeerror: Str Object - Programming - Nairaland

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

Java JDBC Database Object Mysql Connection And Manipulation Library By Antware / Tutorial: Object Oriented Programming Paradigm For Beginners in Python / Let's Build A Simple Blog With Python(django) (2) (3) (4)

(1) (Reply)

Django Get Attributeerror: Str Object by syluck(m): 5:12pm On Mar 20
 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
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(m): 8:39pm On Mar 21
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)

Local Restaurants Management System Ready For Sale / Needs An Answer To An Constant Hanging Of Udemy Video Tutorial / What Is Python?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 34
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.