import sendgrid from django.conf import settings def get_sendgrid_client(): return sendgrid.SendGridAPIClient(apikey=settings.SENDGRID_API_KEY)