Django - как импортировать библиотеку sendgrid python?
I would like to use Sendgrid's python library so I can use their Web API for sending email from Django. I installed the library and their example code says to from sendgrid import SendGridAPIClient
. Django does not recognize this module though - import sendgrid could not be resolved
. I am running django inside docker, I did docker-compose down
and then docker-compose up -d --build
after install sendgrid. I feel like I'm missing a fundamental step here.
PS C:\Users\Doug\OneDrive\django\smartmark> pipenv install sendgrid
Installing sendgrid…
Adding sendgrid to Pipfile's [packages]…
Pipfile.lock (1e7343) out of date, updating to (4cf710)…
Locking [dev-packages] dependencies…
Success!
Locking [packages] dependencies…
Success!
Updated Pipfile.lock (1e7343)!
Installing dependencies from Pipfile.lock (1e7343)…
================================ 37/37 - 00:00:02
PS C:\Users\Doug\OneDrive\django\smartmark>