Django Views.py Invalid Syntax
I want to send email to multiple recipients in Django, using SendGrid. In my views.py file I have this and it works: data = { 'personalizations': [ { 'to':
Solution 1:
You can try list comprehension
"to": [{"email": address} for address in addresses]
Post a Comment for "Django Views.py Invalid Syntax"