How to Solve NameError: name 'send_mail' is not defined -- django

Erorr: name 'send_mail' is not defined

NameError: name 'send_mail' is not defined

Solution: Import the 'send_mail' module

# Add the following line to the top of your code
from django.core.mail import send_mail

 

For more information:
django send_mail