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

Solution: Import the 'EmailField' module

To Solve the error, add the following line to the top of your code.

from django.models.fields import EmailField

 

For more information:
Python django EmailField